Propagate CAM_DIS_DISCONNECT on through:
authorPeter Avalos <pavalos@dragonflybsd.org>
Wed, 21 Nov 2007 22:10:16 +0000 (22:10 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Wed, 21 Nov 2007 22:10:16 +0000 (22:10 +0000)
commit0959126ec5a14d1ebef22e8f3177e01531660036
treeee2544c107ddcb41991c2a1c7785163c6f196e93
parentbe8d40b8e60083f906652d46ec1b040e4d590d08
Propagate CAM_DIS_DISCONNECT on through:

1. If we get frozen, unfreeze for disable disconnects.
2. Put CAM_DIS_DISCONNECT commands at the head of the work queue
(we have a target still connected and we can't run anything else
until this command completes).

If we had an error sending the last CTIO, unfreeze the queue anyway.

Obtained-from: FreeBSD
sys/bus/cam/scsi/scsi_targ_bh.c