summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorShaohua Li <shli@kernel.org>2012-04-24 17:23:46 +0400
committerBen Myers <bpm@sgi.com>2012-05-15 01:20:23 +0400
commit7582df516c93046b8d2111a780c69de77f9882fb (patch)
tree1ba200ed20ee7da46337c0ad8c3a685ac81b29a4 /fs/xfs/xfs_super.c
parent01c84d2dc1311fb76ea217dadfd5b3a5f3cab563 (diff)
downloadlinux-7582df516c93046b8d2111a780c69de77f9882fb.tar.xz
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>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c2
1 files changed, 1 insertions, 1 deletions
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