Potential locking issue in sunrpc
Subsystems (2)
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_asyncrpc_run_taskrpc_executerpc_make_runnable
Is the comment on the make_runnable method wrong, or are we missing locking?
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com