Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Mike Christie and committed by
James Bottomley
464bb99e 1d1bbee6

+1
+1
drivers/scsi/libiscsi.c
··· 1473 1473 struct iscsi_session *session = iscsi_hostdata(shost->hostdata); 1474 1474 struct module *owner = cls_session->transport->owner; 1475 1475 1476 + iscsi_unblock_session(cls_session); 1476 1477 scsi_remove_host(shost); 1477 1478 1478 1479 iscsi_pool_free(&session->mgmtpool, (void**)session->mgmt_cmds);