On Thu, Jul 22, 2021 at 11:53:32AM +1000, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > The recent journal flush/FUA changes replaced the flushing of the > data device on every iclog write with an up-front async data device > cache flush. Unfortunately, the assumption of which this was based > on has been proven incorrect by the flush vs log tail update > ordering issue. As the fix for that issue uses the > XLOG_ICL_NEED_FLUSH flag to indicate that data device needs a cache > flush, we now need to (once again) ensure that an iclog write to > external logs that need a cache flush to be issued actually issue a > cache flush to the data device as well as the log device. > > Fixes: eef983ffeae7 ("xfs: journal IO cache flush reductions") > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx> Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx>