mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
xfs: flush data dev on external log write
We incorrectly flush the log device instead of the data device when
trying to ensure metadata is correctly on disk before writing the
unmount record.
Fixes: eef983ffea
("xfs: journal IO cache flush reductions")
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
parent
b102a46ce1
commit
b1e27239b9
1 changed files with 1 additions and 1 deletions
|
@ -833,7 +833,7 @@ xlog_write_unmount_record(
|
|||
* stamp the tail LSN into the unmount record.
|
||||
*/
|
||||
if (log->l_targ != log->l_mp->m_ddev_targp)
|
||||
blkdev_issue_flush(log->l_targ->bt_bdev);
|
||||
blkdev_issue_flush(log->l_mp->m_ddev_targp->bt_bdev);
|
||||
return xlog_write(log, &vec, ticket, NULL, NULL, XLOG_UNMOUNT_TRANS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue