]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] lockdep: annotate the sysfs i_mutex to be a separate class
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 12 Jul 2006 16:03:06 +0000 (09:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 12 Jul 2006 19:52:54 +0000 (12:52 -0700)
commitd86a217a914dcb3be72d7dbb64af1961ada49de1
tree257808053d298d4bf0fd169310e628cc1ed7209d
parent89f717c9dc2af456d0fddd536a5e2e74e1fda928
[PATCH] lockdep: annotate the sysfs i_mutex to be a separate class

sysfs has a different i_mutex lock order behavior for i_mutex than the
other filesystems; sysfs i_mutex is called in many places with subsystem
locks held.  At the same time, many of the VFS locking rules do not apply
to sysfs at all (cross directory rename for example).  To untangle this
mess (which gives false positives in lockdep), we're giving sysfs inodes
their own class for i_mutex.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/sysfs/inode.c