From: Shlomo Pongratz <shlo...@mellanox.com>

We never will have a closed window and something on one of those lists.

Signed-off-by: Mike Christie <micha...@cs.wisc.edu>
Signed-off-by: Shlomo Pongratz <shlo...@mellanox.com>
---
 drivers/scsi/libiscsi.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 9c28c46..dd66d8a 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -108,18 +108,6 @@ static void __iscsi_update_cmdsn(struct iscsi_session 
*session,
        if (exp_cmdsn != session->exp_cmdsn &&
            !iscsi_sna_lt(exp_cmdsn, session->exp_cmdsn))
                session->exp_cmdsn = exp_cmdsn;
-
-       if (max_cmdsn != session->max_cmdsn &&
-           !iscsi_sna_lt(max_cmdsn, session->max_cmdsn)) {
-               session->max_cmdsn = max_cmdsn;
-               /*
-                * if the window closed with IO queued, then kick the
-                * xmit thread
-                */
-               if (!list_empty(&session->leadconn->cmdqueue) ||
-                   !list_empty(&session->leadconn->mgmtqueue))
-                       iscsi_conn_queue_work(session->leadconn);
-       }
 }
 
 void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr)
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to