linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Potential locking issue in sunrpc
@ 2011-06-30 21:08 Ben Greear
  2011-07-01 18:37 ` Trond Myklebust
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Greear @ 2011-06-30 21:08 UTC (permalink / raw)
  To: linux-nfs

This method in sched.c says we should have a lock for ASYNC

/*
  * Make an RPC task runnable.
  *
  * Note: If the task is ASYNC, this must be called with
  * the spinlock held to protect the wait queue operation.
  */
static void rpc_make_runnable(struct rpc_task *task)

However, I don't think the lock is being taken for
the call path starting with rpcb_call_async in
rpcb_clnt.c:

rpcb_call_async
rpc_run_task
rpc_execute
rpc_make_runnable

Is the comment on the make_runnable method wrong, or are we missing locking?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-01 18:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 21:08 Potential locking issue in sunrpc Ben Greear
2011-07-01 18:37 ` Trond Myklebust
2011-07-01 18:48   ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).