xfs: using GFP_NOFS for blkdev_issue_flush
authorShaohua Li <shli@kernel.org>
Tue, 24 Apr 2012 13:23:46 +0000 (21:23 +0800)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:20:23 +0000 (16:20 -0500)
commit7582df516c93046b8d2111a780c69de77f9882fb
tree1ba200ed20ee7da46337c0ad8c3a685ac81b29a4
parent01c84d2dc1311fb76ea217dadfd5b3a5f3cab563
xfs: using GFP_NOFS for blkdev_issue_flush

Issuing a block device flush request in transaction context using GFP_KERNEL
directly can cause deadlocks due to memory reclaim recursion. Use GFP_NOFS to
avoid recursion from reclaim context.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_super.c