From: Shaohua Li Date: Tue, 24 Apr 2012 13:23:46 +0000 (+0800) Subject: xfs: using GFP_NOFS for blkdev_issue_flush X-Git-Tag: firefly_0821_release~3680^2~2769^2~47 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7582df516c93046b8d2111a780c69de77f9882fb;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index b5aafc395ea1..28d1f508b578 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -622,7 +622,7 @@ void xfs_blkdev_issue_flush( xfs_buftarg_t *buftarg) { - blkdev_issue_flush(buftarg->bt_bdev, GFP_KERNEL, NULL); + blkdev_issue_flush(buftarg->bt_bdev, GFP_NOFS, NULL); } STATIC void