summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorAndriy Skulysh <andriy_skulysh@xyratex.com>2013-01-07 02:12:15 +0400
committerJ. Bruce Fields <bfields@redhat.com>2013-01-24 03:17:39 +0400
commit35525b79786b2ba58ef13822198ce22c497bc7a2 (patch)
tree2aaefaf2b21a3b3b133b29b711c811be0e335c11 /include/linux/sunrpc
parent624ab4644819948e9dc87c114201e98f2e52490f (diff)
downloadlinux-35525b79786b2ba58ef13822198ce22c497bc7a2.tar.xz
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>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/svc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 676ddf53b3ee..1f0216b9a6c9 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -50,6 +50,7 @@ struct svc_pool {
unsigned int sp_nrthreads; /* # of threads in pool */
struct list_head sp_all_threads; /* all server threads */
struct svc_pool_stats sp_stats; /* statistics on pool operation */
+ int sp_task_pending;/* has pending task */
} ____cacheline_aligned_in_smp;
/*