diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-03-29 08:52:16 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-04-08 02:27:55 -0400 |
commit | c6b8e9180de76624d0a01148d6edd0107edebed1 (patch) | |
tree | f292c194f5fbeba7caca3fd9946a25b40825f424 | |
parent | ae9ea9ed38c9c8f6cf19c669d7b032cab3dadede (diff) |
iser-target: Get rid of redundant max_accept
Not sure what it was used for, but there is
no real need for it now as I see it. Go ahead
and get rid of it.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index 4fddc08f4ae5..97cee96dc035 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -3209,11 +3209,11 @@ isert_accept_np(struct iscsi_np *np, struct iscsi_conn *conn) | |||
3209 | { | 3209 | { |
3210 | struct isert_np *isert_np = np->np_context; | 3210 | struct isert_np *isert_np = np->np_context; |
3211 | struct isert_conn *isert_conn; | 3211 | struct isert_conn *isert_conn; |
3212 | int max_accept = 0, ret; | 3212 | int ret; |
3213 | 3213 | ||
3214 | accept_wait: | 3214 | accept_wait: |
3215 | ret = down_interruptible(&isert_np->np_sem); | 3215 | ret = down_interruptible(&isert_np->np_sem); |
3216 | if (ret || max_accept > 5) | 3216 | if (ret) |
3217 | return -ENODEV; | 3217 | return -ENODEV; |
3218 | 3218 | ||
3219 | spin_lock_bh(&np->np_thread_lock); | 3219 | spin_lock_bh(&np->np_thread_lock); |
@@ -3232,7 +3232,6 @@ accept_wait: | |||
3232 | mutex_lock(&isert_np->np_accept_mutex); | 3232 | mutex_lock(&isert_np->np_accept_mutex); |
3233 | if (list_empty(&isert_np->np_accept_list)) { | 3233 | if (list_empty(&isert_np->np_accept_list)) { |
3234 | mutex_unlock(&isert_np->np_accept_mutex); | 3234 | mutex_unlock(&isert_np->np_accept_mutex); |
3235 | max_accept++; | ||
3236 | goto accept_wait; | 3235 | goto accept_wait; |
3237 | } | 3236 | } |
3238 | isert_conn = list_first_entry(&isert_np->np_accept_list, | 3237 | isert_conn = list_first_entry(&isert_np->np_accept_list, |
@@ -3242,7 +3241,6 @@ accept_wait: | |||
3242 | 3241 | ||
3243 | conn->context = isert_conn; | 3242 | conn->context = isert_conn; |
3244 | isert_conn->conn = conn; | 3243 | isert_conn->conn = conn; |
3245 | max_accept = 0; | ||
3246 | 3244 | ||
3247 | isert_set_conn_info(np, conn, isert_conn); | 3245 | isert_set_conn_info(np, conn, isert_conn); |
3248 | 3246 | ||