Skip to content

Commit 66eb3ad

Browse files
author
Trond Myklebust
committed
SUNRPC: Avoid RPC delays when exiting suspend
Jon Hunter: "I have been tracking down another suspend/NFS related issue where again I am seeing random delays exiting suspend. The delays can be up to a couple minutes in the worst case and this is causing a suspend test we have to fail." Change the use of a deferrable work to a standard delayed one. Reported-by: Jon Hunter <[email protected]> Tested-by: Jon Hunter <[email protected]> Fixes: 7e0a0e3 ("SUNRPC: Replace the queue timer with a delayed work function") Signed-off-by: Trond Myklebust <[email protected]>
1 parent 43622ea commit 66eb3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static void __rpc_init_priority_wait_queue(struct rpc_wait_queue *queue, const c
260260
rpc_reset_waitqueue_priority(queue);
261261
queue->qlen = 0;
262262
queue->timer_list.expires = 0;
263-
INIT_DEFERRABLE_WORK(&queue->timer_list.dwork, __rpc_queue_timer_fn);
263+
INIT_DELAYED_WORK(&queue->timer_list.dwork, __rpc_queue_timer_fn);
264264
INIT_LIST_HEAD(&queue->timer_list.list);
265265
rpc_assign_waitqueue_name(queue, qname);
266266
}

0 commit comments

Comments
 (0)