]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ocs_fc: When commands complete with an error, freeze the device queue.
authorRam Kishore Vegesna <ram@FreeBSD.org>
Fri, 24 Sep 2021 09:32:09 +0000 (15:02 +0530)
committerRam Kishore Vegesna <ram@FreeBSD.org>
Fri, 17 Dec 2021 10:31:06 +0000 (16:01 +0530)
commit0fff02894f308ec3943b9cbce09d468e7d9974ea
treea69ccc11099cade58bf42bd818cf688e2d4443a5
parent4821da88ab77fb603abe1c07162ea37d01730edb
ocs_fc: When commands complete with an error, freeze the device queue.

Proper error recovery depends on freezing the device queue when an
error occurs, so we can recover from an error before sending
additional commands.

The ocs_fc(4) driver was not freezing the device queue for most
SCSI errors, and that broke error recovery.

sys/dev/ocs_fc/ocs_cam.c:
In ocs_scsi_initiator_io_cb(), freeze the device queue if
        we're passing back status other than CAM_REQ_CMP.

Submitted by: ken@kdm.org
Reviewed by: mav, ken

(cherry picked from commit d063d1bc928165e7798df5ec1c424794a1ec41e9)
sys/dev/ocs_fc/ocs_cam.c