diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-03-25 11:23:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 10:04:14 -0700 |
commit | 66156e6f66b648a7ca7f23e659552eed2db7bb9e (patch) | |
tree | 6ad8976cb18b76a8dac12576dfd51ae003626657 /arch | |
parent | 30e8f45d7687bcc6ac4010ea37ae78d8e365d2b7 (diff) | |
download | linux-3.10-66156e6f66b648a7ca7f23e659552eed2db7bb9e.tar.gz linux-3.10-66156e6f66b648a7ca7f23e659552eed2db7bb9e.tar.bz2 linux-3.10-66156e6f66b648a7ca7f23e659552eed2db7bb9e.zip |
SUNRPC: Add barriers to ensure read ordering in rpc_wake_up_task_queue_locked
commit 1166fde6a923c30f4351515b6a9a1efc513e7d00 upstream.
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 <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions