]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Hyper-V: storvsc: Enhance srb_status code handling.
authorWei Hu <whu@FreeBSD.org>
Mon, 31 Aug 2020 09:05:45 +0000 (09:05 +0000)
committerWei Hu <whu@FreeBSD.org>
Mon, 31 Aug 2020 09:05:45 +0000 (09:05 +0000)
commit2a0ce39d086ffe13782c9dc1e24bb240abbe790a
treed74c7015dfbc0d16ce59a080c86c64bd316dab79
parent1e9b8db9b254b98ae065889f8c33b0dcc18138a1
Hyper-V: storvsc: Enhance srb_status code handling.

In hv_storvsc_io_request() when coring, prevent changing of the send channel
from the base channel to another one. storvsc_poll always probes on the base
channel.

Based upon conversations with Microsoft, changed the handling of srb_status
codes. Most we should never get, others yes. All are treated as retry-able
except for two. We should not get these statuses, but if we ever do, the I/O
state is not known.

Submitted by: Alexander Sideropoulos <Alexander.Sideropoulos@netapp.com>
Reviewed by: trasz, allanjude, whu
MFC after: 1 week
Sponsored by: Netapp Inc
Differential Revision: https://reviews.freebsd.org/D25756
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
sys/dev/hyperv/storvsc/hv_vstorage.h