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:16:35 -0700 |
commit | e260b286728445297514618aee4854d93195007a (patch) | |
tree | 835308f40987567fc13f3c1dc7ecae4f55be2dab /net/bluetooth/sco.c | |
parent | 405c3ddd2026ab2376afd03e7a299ba58f12280f (diff) | |
download | kernel_samsung_espresso10-e260b286728445297514618aee4854d93195007a.zip kernel_samsung_espresso10-e260b286728445297514618aee4854d93195007a.tar.gz kernel_samsung_espresso10-e260b286728445297514618aee4854d93195007a.tar.bz2 |
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 'net/bluetooth/sco.c')
0 files changed, 0 insertions, 0 deletions