diff options
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c index 35f53a3fdf21..57b20c691367 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c | |||
@@ -627,7 +627,9 @@ void iser_conn_release(struct iser_conn *iser_conn) | |||
627 | mutex_unlock(&ig.connlist_mutex); | 627 | mutex_unlock(&ig.connlist_mutex); |
628 | 628 | ||
629 | mutex_lock(&iser_conn->state_mutex); | 629 | mutex_lock(&iser_conn->state_mutex); |
630 | BUG_ON(iser_conn->state != ISER_CONN_DOWN); | 630 | if (iser_conn->state != ISER_CONN_DOWN) |
631 | iser_warn("iser conn %p state %d, expected state down.\n", | ||
632 | iser_conn, iser_conn->state); | ||
631 | /* | 633 | /* |
632 | * In case we never got to bind stage, we still need to | 634 | * In case we never got to bind stage, we still need to |
633 | * release IB resources (which is safe to call more than once). | 635 | * release IB resources (which is safe to call more than once). |