[SCSI] libiscsi: make sure session is not blocked when removing host
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 26 Jul 2007 17:46:45 +0000 (12:46 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 27 Jul 2007 13:11:14 +0000 (09:11 -0400)
commit464bb99ea448dc2f017be9150a8be9ab1f021979
tree02639d08940609bfbb729d9da1e5bce1dddf7a48
parent1d1bbee61e4ecdaad450e9bf4d9983876ed53a43
[SCSI] libiscsi: make sure session is not blocked when removing host

When we logout we block the session since we are not taking any more
commands, but when we call remove host we want to make sure any
IO that got queued up and blocked gets failed upwards quickly, so
we unblock the session and fail it.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/libiscsi.c