Commit:     464bb99ea448dc2f017be9150a8be9ab1f021979
Parent:     1d1bbee61e4ecdaad450e9bf4d9983876ed53a43
Author:     Mike Christie <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 26 12:46:45 2007 -0500
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Fri Jul 27 09:11:14 2007 -0400

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/libiscsi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 4d85ce1..271a2d6 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1473,6 +1473,7 @@ void iscsi_session_teardown(struct iscsi_cls_session 
        struct iscsi_session *session = iscsi_hostdata(shost->hostdata);
        struct module *owner = cls_session->transport->owner;
+       iscsi_unblock_session(cls_session);
        iscsi_pool_free(&session->mgmtpool, (void**)session->mgmt_cmds);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to