[openib-general] [PATCH] iser: bugfix in disconnect flow

Or Gerlitz ogerlitz at voltaire.com
Sun Feb 12 02:17:40 PST 2006


bugfix in disconnect flow, wrong field was checked, remove iscsi_iser_conn->state

Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>


Index: iscsi_iser.h
===================================================================
--- iscsi_iser.h        (revision 5377)
+++ iscsi_iser.h        (revision 5378)
@@ -314,7 +314,6 @@ struct iscsi_iser_conn {

        struct iser_conn             *ib_conn;           /* iSER IB conn      */
        int                          ff_mode_enabled;    /* To be removed ??? */
-       atomic_t                     state;         /* iSCSI connection state */
        atomic_t                     post_recv_buf_count;
        atomic_t                     post_send_buf_count;
        wait_queue_head_t            disconnect_wait_q;  /* used by sync term */
Index: iser_verbs.c
===================================================================
--- iser_verbs.c        (revision 5377)
+++ iser_verbs.c        (revision 5378)
@@ -821,7 +821,7 @@ void iser_comp_error_worker(void *data)
        if (p_iser_conn == NULL)
                iser_bug("NULL p_desc->p_conn \n");

-       if (atomic_read(&p_iser_conn->state) == ISER_CONN_UP)
+       if (atomic_read(&p_iser_conn->ib_conn->state) == ISER_CONN_UP)
                iser_conn_async_terminate(p_iser_conn->ib_conn);

        iser_complete_conn_termination(p_iser_conn);






More information about the general mailing list