diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-05-22 20:57:24 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-07 23:52:50 +0400 |
commit | d52bd6ede0250d1bdf389e2d0be2cd63640a5828 (patch) | |
tree | 20ed82d3d3f40d0b36ba89695fcfd81a821d32ff /COPYING | |
parent | 09493e200a8db589a359a5bf0cd44777c8a540d2 (diff) | |
download | linux-d52bd6ede0250d1bdf389e2d0be2cd63640a5828.tar.xz |
SUNRPC: Prevent an rpc_task wakeup race
commit a3c3cac5d31879cd9ae2de7874dc6544ca704aec upstream.
The lockless RPC_IS_QUEUED() test in __rpc_execute means that we need to
be careful about ordering the calls to rpc_test_and_set_running(task) and
rpc_clear_queued(task). If we get the order wrong, then we may end up
testing the RPC_TASK_RUNNING flag after __rpc_execute() has looped
and changed the state of the rpc_task.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions