Commit 2606a07a authored by Nathan Scott's avatar Nathan Scott

[XFS] Ensure sb not flushed async on a SYNC_WAIT sync. Fixed by Bart Samwel.

SGI Modid: xfs-linux:xfs-kern:169208a
parent 1671540e
...@@ -1487,8 +1487,10 @@ xfs_syncsub( ...@@ -1487,8 +1487,10 @@ xfs_syncsub(
*/ */
if (XFS_BUF_ISPINNED(bp)) if (XFS_BUF_ISPINNED(bp))
xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE); xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE);
if (!(flags & SYNC_WAIT)) if (flags & SYNC_WAIT)
XFS_BUF_BFLAGS(bp) |= XFS_B_ASYNC; XFS_BUF_UNASYNC(bp);
else
XFS_BUF_ASYNC(bp);
error = xfs_bwrite(mp, bp); error = xfs_bwrite(mp, bp);
} }
if (error) { if (error) {
......
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