jbd2: use GFP_NOFS for blkdev_issue_flush
authorShaohua Li <shli@kernel.org>
Fri, 13 Apr 2012 02:27:35 +0000 (10:27 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 Apr 2012 01:43:41 +0000 (21:43 -0400)
commit99aa78466777083255b876293e9e83dec7cd809a
treee15bd88760cb27bb306929b19ba41abc53e0e333
parent57f73c2c89a5d3b2ed87201c8100d1fa989a1a65
jbd2: use GFP_NOFS for blkdev_issue_flush

flush request is issued in transaction commit code path, so looks using
GFP_KERNEL to allocate memory for flush request bio falls into the classic
deadlock issue.  I saw btrfs and dm get it right, but ext4, xfs and md are
using GFP.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: stable@vger.kernel.org
fs/jbd2/commit.c