]> git.karo-electronics.de Git - karo-tx-linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:13:59 +0000 (13:13 +0100)
commitf25543699889485de366c0ccf311fc593946c96e
tree3401c09f72f28dc8a1cd381fd0c0fb1cb17ec4af
parent31097a1c490c409385e28a64284bde16a4bfe76b
jbd2: use GFP_NOFS for blkdev_issue_flush

commit 99aa78466777083255b876293e9e83dec7cd809a upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/jbd2/commit.c