ext4: avoid deadlocks in the writeback path by using sb_getblk_gfp
authorNikolay Borisov <kernel@kyup.com>
Thu, 2 Jul 2015 05:34:07 +0000 (01:34 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Aug 2015 14:33:19 +0000 (16:33 +0200)
commitd612a04deae8a70636a2fced4fdd0bb94dfb6219
tree82212766ebf7863e37c8ebd555400c06ab81bb55
parent786d7b3d2d1096c893e0fda85126c3972c98b027
ext4: avoid deadlocks in the writeback path by using sb_getblk_gfp

commit c45653c341f5c8a0ce19c8f0ad4678640849cb86 upstream.

Switch ext4 to using sb_getblk_gfp with GFP_NOFS added to fix possible
deadlocks in the page writeback path.

Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ext4/extents.c