]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd63ab24968647be7b7b0663d6d55904795e1ff87
tree2aaefaf2b21a3b3b133b29b711c811be0e335c11
parent8896c540a4a81506d6425a3386f34e08b2171e47
sunrpc: Fix lockd sleeping until timeout

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>
include/linux/sunrpc/svc.h
net/sunrpc/svc_xprt.c