diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/sched.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 043eef4c15a2..88a686a8e43e 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
@@ -384,12 +384,8 @@ static void __rpc_do_wake_up_task(struct rpc_wait_queue *queue, struct rpc_task | |||
384 | */ | 384 | */ |
385 | static void rpc_wake_up_task_queue_locked(struct rpc_wait_queue *queue, struct rpc_task *task) | 385 | static void rpc_wake_up_task_queue_locked(struct rpc_wait_queue *queue, struct rpc_task *task) |
386 | { | 386 | { |
387 | if (!RPC_IS_QUEUED(task) || task->tk_waitqueue != queue) | 387 | if (RPC_IS_QUEUED(task) && task->tk_waitqueue == queue) |
388 | return; | 388 | __rpc_do_wake_up_task(queue, task); |
389 | if (rpc_start_wakeup(task)) { | ||
390 | __rpc_do_wake_up_task(queue, task); | ||
391 | rpc_finish_wakeup(task); | ||
392 | } | ||
393 | } | 389 | } |
394 | 390 | ||
395 | /* | 391 | /* |