diff options
author | Jonathan Corbet <corbet@lwn.net> | 2010-09-08 16:54:54 -0600 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-09-09 09:09:43 -0700 |
commit | a73f8844e1fc54c3762555c1cf1f71774142ca91 (patch) | |
tree | 6cf860dead41a30f5fac677f0cd478efad564c8f /net/ax25 | |
parent | 39aa3cb3e8250db9188a6f1e3fb62ffa1a717678 (diff) | |
download | linux-a73f8844e1fc54c3762555c1cf1f71774142ca91.tar.bz2 |
lglock: make lg_lock_global() actually lock globally
lg_lock_global() currently only acquires spinlocks for online CPUs, but
it's meant to lock all possible CPUs. Lglock-protected resources may be
associated with removed CPUs - and, indeed, that could happen with the
per-superblock open files lists.
At Nick's suggestion, change for_each_online_cpu() to
for_each_possible_cpu() to protect accesses to those resources.
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Acked-by: Nick Piggin <npiggin@kernel.dk>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions