]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84b4c6dd4395c08e3914b487722c1355123ec142
treee15bd88760cb27bb306929b19ba41abc53e0e333
parentfb12e526b962146c63fe0dc7ea4d6e4fefa5f89b
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