SUNRPC: Test whether the task is queued before grabbing the queue spinlocks
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 8 Sep 2018 03:15:35 +0000 (23:15 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:14 +0000 (15:35 -0400)
commit5ce970393bad41499d50dfaea525ac8f01cdbc30
tree6b9423daa5d1bfaddd9dbce63f2f5e1a14aa261e
parent359c48c04af25397ecefec1ccf200ddd199617ce
SUNRPC: Test whether the task is queued before grabbing the queue spinlocks

When asked to wake up an RPC task, it makes sense to test whether or not
the task is still queued.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/sched.c