Skip to content
Commit a76580fb authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Fix a potential race in rpc_execute



If the rpc_task is asynchronous, it could theoretically finish executing
on the workqueue it was assigned by rpc_make_runnable() before we get
round to testing RPC_IS_ASYNC() in rpc_execute.

In practice, however, all the existing callers hold a reference to the
rpc_task, so this can't happen today...

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 5cc2216d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment