From: Trond Myklebust Date: Mon, 25 Mar 2013 15:23:40 +0000 (-0400) Subject: SUNRPC: Add barriers to ensure read ordering in rpc_wake_up_task_queue_locked X-Git-Tag: v3.9-rc5~29^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1166fde6a923c30f4351515b6a9a1efc513e7d00;p=pandora-kernel.git SUNRPC: Add barriers to ensure read ordering in rpc_wake_up_task_queue_locked We need to be careful when testing task->tk_waitqueue in rpc_wake_up_task_queue_locked, because it can be changed while we are holding the queue->lock. By adding appropriate memory barriers, we can ensure that it is safe to test task->tk_waitqueue for equality if the RPC_TASK_QUEUED bit is set. Signed-off-by: Trond Myklebust Cc: stable@vger.kernel.org --- Reading git-diff-tree failed