On Thu, May 26, 2022 at 08:29:02PM +0100, Matthew Wilcox (Oracle) wrote: > Al's patch. > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Hmm, that is a bit of a weird changelog.. > /* for data sync or sync, we need sync completion processing */ > - if (iocb->ki_flags & IOCB_DSYNC) > + if (iocb->ki_flags & IOCB_DSYNC && > + !(dio_flags & IOMAP_DIO_NOSYNC)) > dio->flags |= IOMAP_DIO_NEED_SYNC; > > /* I think we also need to skip the setting of IOMAP_DIO_WRITE_FUA below (or find a way to communicate back to the that FUA was used, which seems way more complicated)