SUNRPC: Fix a potential race in rpc_execute
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 21 May 2013 03:00:18 +0000 (23:00 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Jun 2013 20:24:38 +0000 (16:24 -0400)
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: Trond Myklebust <Trond.Myklebust@netapp.com>

No differences found