From: Jonathan Corbet Date: Wed, 8 Sep 2010 22:54:54 +0000 (-0600) Subject: lglock: make lg_lock_global() actually lock globally X-Git-Tag: v2.6.36-rc4~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a73f8844e1fc54c3762555c1cf1f71774142ca91;p=pandora-kernel.git 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 Acked-by: Nick Piggin Signed-off-by: Jonathan Corbet Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed