Thomas Gleixner f1f76f865b devtmpfs: Convert dirlock to a mutex
devtmpfs has a rw_lock dirlock which serializes delete_path and
create_path.

This code was obviously never tested with the usual set of debugging
facilities enabled. In the dirlock held sections the code calls:

 - vfs functions which take mutexes
 - kmalloc(, GFP_KERNEL)

In both code pathes the might sleep warning triggers and spams dmesg.

Convert the rw_lock to a mutex. There is no reason why this needs to
be a rwlock.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-23 11:23:42 -08:00
..
2009-12-23 11:23:42 -08:00
2009-12-22 14:17:56 -08:00
2009-12-15 08:53:34 -08:00
2009-12-12 13:08:15 +01:00
2009-12-15 08:53:25 -08:00
2009-12-22 14:17:56 -08:00
2009-12-15 09:33:36 -08:00
2009-12-22 14:17:56 -08:00
2009-12-09 17:14:38 +11:00
2009-12-22 14:17:56 -08:00
2009-12-22 12:27:33 -05:00
2009-12-15 08:53:25 -08:00