summaryrefslogtreecommitdiff
path: root/Documentation/locking
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-04-28 20:00:42 +0300
committerChris Metcalf <cmetcalf@ezchip.com>2015-04-29 05:43:16 +0300
commit627ae54854edfbf29d5997015c190de22eef497f (patch)
treeefa812a770bc06ce188f77262b5916e171ceaca1 /Documentation/locking
parent14c3dec2a875d898262be79c0f85e5f2b70a71b0 (diff)
downloadlinux-627ae54854edfbf29d5997015c190de22eef497f.tar.xz
tile: use READ_ONCE() in arch_spin_is_locked()
This avoid potential issues if callers were to loop on these routines without some kind of memory barrier. Currently there are no such users in-tree, but it seems better safe than sorry. Also, in the tilepro case we read "current" before "next", which gives us a slightly better guarantee that the lock was actually unlocked at least momentarily if we return claiming that it is not locked. None of the callers actually rely on this behavior, as far as I know, however. Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Diffstat (limited to 'Documentation/locking')
0 files changed, 0 insertions, 0 deletions