Prasad Joshi eabb26cacd logfs: fix deadlock in logfs_get_wblocks, hold and wait on super->s_write_mutex
do_logfs_journal_wl_pass() should use GFP_NOFS for memory allocation GC
code calls btree_insert32 with GFP_KERNEL while holding a mutex
super->s_write_mutex.

The same mutex is used in address_space_operations->writepage(), and a
call to writepage() could be triggered as a result of memory allocation
in btree_insert32, causing a deadlock.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=20342

Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: Joern Engel <joern@logfs.org>
Cc: Florian Mickler <florian@mickler.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Maciej Rutecki <maciej.rutecki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-12-22 19:43:33 -08:00
..
2009-11-20 20:13:39 +01:00
2010-10-29 04:16:48 -04:00
2010-10-29 04:16:48 -04:00
2010-10-25 21:26:11 -04:00
2010-08-14 00:24:24 +02:00
2010-05-07 19:38:40 +02:00
2009-11-20 20:13:39 +01:00
2010-05-10 11:56:30 +02:00
2010-11-01 16:34:56 -04:00
2009-11-20 20:13:39 +01:00
2010-08-09 16:48:28 -04:00
2010-08-09 16:48:26 -04:00
2010-10-29 04:16:51 -04:00