]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't use REQ_PREFLUSH for split log writes
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:21 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:21 +0000 (19:27 -0700)
commit00dcd3756ecebd1229cef255d96316e2c27c300e
tree90a07886d3f93aa67a44da8cd753442d63a41197
parent13ca00d8c8d12fcfdc76a7cf11755966b708225f
xfs: don't use REQ_PREFLUSH for split log writes

If we have to split a log write because it wraps the end of the log we
can't just use REQ_PREFLUSH to flush before the first log write,
as the writes might get reordered somewhere in the I/O stack.  Issue
a manual flush in that case so that the ordering of the two log I/Os
doesn't matter.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c