summaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2010-09-09 00:54:54 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-09 18:09:43 +0200
commita73f8844e1fc54c3762555c1cf1f71774142ca91 (patch)
tree6cf860dead41a30f5fac677f0cd478efad564c8f /include/mtd
parentmm: Move vma_stack_continue into mm.h (diff)
downloadlinux-a73f8844e1fc54c3762555c1cf1f71774142ca91.tar.xz
linux-a73f8844e1fc54c3762555c1cf1f71774142ca91.zip
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 'include/mtd')
0 files changed, 0 insertions, 0 deletions