lkml.org 
[lkml]   [2014]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.12 115/146] Target/iser: Fix wrong connection requests list addition
    Date
    From: Sagi Grimberg <sagig@mellanox.com>

    3.12-stable review patch. If anyone has any objections, please let me know.

    ===============

    commit 9fe63c88b1d59f1ce054d6948ccd3096496ecedb upstream.

    Should be adding list_add_tail($new, $head) and not
    the other way around.

    Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
    Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
    Signed-off-by: Jiri Slaby <jslaby@suse.cz>
    ---
    drivers/infiniband/ulp/isert/ib_isert.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
    index 02e4d2efa208..d62b61cc6175 100644
    --- a/drivers/infiniband/ulp/isert/ib_isert.c
    +++ b/drivers/infiniband/ulp/isert/ib_isert.c
    @@ -572,7 +572,7 @@ isert_connect_request(struct rdma_cm_id *cma_id, struct rdma_cm_event *event)
    goto out_conn_dev;

    mutex_lock(&isert_np->np_accept_mutex);
    - list_add_tail(&isert_np->np_accept_list, &isert_conn->conn_accept_node);
    + list_add_tail(&isert_conn->conn_accept_node, &isert_np->np_accept_list);
    mutex_unlock(&isert_np->np_accept_mutex);

    pr_debug("isert_connect_request() waking up np_accept_wq: %p\n", np);
    --
    1.9.3


    \
     
     \ /
      Last update: 2014-06-09 12:41    [W:3.357 / U:0.288 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site