Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logfs: fix deadlock in logfs_get_wblocks, hold and wait on super->s_w…
…rite_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 <[email protected]> Cc: Joern Engel <[email protected]> Cc: Florian Mickler <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: Maciej Rutecki <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information