aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/addr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index 15ba51806ffd..7767a11b6890 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -235,8 +235,7 @@ static void process_req(void *data)
235 else if (req->status == -ENODATA) 235 else if (req->status == -ENODATA)
236 continue; 236 continue;
237 } 237 }
238 list_del(&req->list); 238 list_move_tail(&req->list, &done_list);
239 list_add_tail(&req->list, &done_list);
240 } 239 }
241 240
242 if (!list_empty(&req_list)) { 241 if (!list_empty(&req_list)) {
@@ -346,8 +345,7 @@ void rdma_addr_cancel(struct rdma_dev_addr *addr)
346 if (req->addr == addr) { 345 if (req->addr == addr) {
347 req->status = -ECANCELED; 346 req->status = -ECANCELED;
348 req->timeout = jiffies; 347 req->timeout = jiffies;
349 list_del(&req->list); 348 list_move(&req->list, &req_list);
350 list_add(&req->list, &req_list);
351 set_timeout(req->timeout); 349 set_timeout(req->timeout);
352 break; 350 break;
353 } 351 }