diff options
author | Christoph Hellwig <hch@lst.de> | 2017-02-07 14:07:58 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-09 11:36:40 -0800 |
commit | 4560e78f40cb55bd2ea8f1ef4001c5baa88531c7 (patch) | |
tree | 8dc0b7babd87706130fbc1f7acc86f53eb6754a7 /fs/xfs/xfs_mount.c | |
parent | 46694129816851cb323e4bcf2dc41482d8d6c19b (diff) | |
download | op-kernel-dev-4560e78f40cb55bd2ea8f1ef4001c5baa88531c7.zip op-kernel-dev-4560e78f40cb55bd2ea8f1ef4001c5baa88531c7.tar.gz |
xfs: don't block the log commit handler for discards
Instead we submit the discard requests and use another workqueue to
release the extents from the extent busy list.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 566eb79..450bde6 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c @@ -1085,6 +1085,7 @@ xfs_unmountfs( * any discard operation. */ xfs_extent_busy_wait_all(mp); + flush_workqueue(xfs_discard_wq); /* * We now need to tell the world we are unmounting. This will allow |