sunrpc: Fix lockd sleeping until timeout
authorAndriy Skulysh <andriy_skulysh@xyratex.com>
Sun, 6 Jan 2013 22:12:15 +0000 (00:12 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Jan 2013 23:17:39 +0000 (18:17 -0500)
There is a race in enqueueing thread to a pool and
waking up a thread.
lockd doesn't wake up on reception of lock granted callback
if svc_wake_up() is called before lockd's thread is added
to a pool.

Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

No differences found