From: Trond Myklebust Date: Wed, 22 May 2013 16:57:24 +0000 (-0400) Subject: SUNRPC: Prevent an rpc_task wakeup race X-Git-Tag: v3.10-rc3~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3c3cac5d31879cd9ae2de7874dc6544ca704aec;p=pandora-kernel.git SUNRPC: Prevent an rpc_task wakeup race 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 Cc: stable@vger.kernel.org --- Reading git-diff-tree failed