Message ID | 20210722015335.3063274-2-david@fromorbit.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | xfs: fix log cache flush regressions | expand |
On Thu, Jul 22, 2021 at 11:53:31AM +1000, Dave Chinner wrote: > From: Dave Chinner <dchinner@redhat.com> > > 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: eef983ffeae7 ("xfs: journal IO cache flush reductions") > Signed-off-by: Dave Chinner <dchinner@redhat.com> Ooops, looks good: Reviewed-by: Christoph Hellwig <hch@lst.de>
On Thu, Jul 22, 2021 at 11:53:31AM +1000, Dave Chinner wrote: > From: Dave Chinner <dchinner@redhat.com> > > 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: eef983ffeae7 ("xfs: journal IO cache flush reductions") > Signed-off-by: Dave Chinner <dchinner@redhat.com> DOH Reviewed-by: Darrick J. Wong <djwong@kernel.org> --D > --- > fs/xfs/xfs_log.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c > index 36fa2650b081..96434cc4df6e 100644 > --- a/fs/xfs/xfs_log.c > +++ b/fs/xfs/xfs_log.c > @@ -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); > } > > -- > 2.31.1 >
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 36fa2650b081..96434cc4df6e 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -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); }