Commit f4a9f28a authored by David Chinner's avatar David Chinner Committed by Tim Shimmin

[XFS] Flush the block device before closing it on unmount.

SGI-PV: 965630
SGI-Modid: xfs-linux-melb:xfs-kern:28774a
Signed-off-by: default avatarDavid Chinner <dgc@sgi.com>
Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
parent 4e5ae838
...@@ -1447,6 +1447,7 @@ xfs_free_buftarg( ...@@ -1447,6 +1447,7 @@ xfs_free_buftarg(
int external) int external)
{ {
xfs_flush_buftarg(btp, 1); xfs_flush_buftarg(btp, 1);
xfs_blkdev_issue_flush(btp);
if (external) if (external)
xfs_blkdev_put(btp->bt_bdev); xfs_blkdev_put(btp->bt_bdev);
xfs_free_bufhash(btp); xfs_free_bufhash(btp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment