On Sun, May 22, 2022 at 12:41:36PM +0000, Al Viro wrote: > Add > #define IOMAP_DIO_NOSYNC (1 << 3) > in iomap.h, pass IOMAP_DIO_PARTIAL | IOMAP_DIO_NOSYNC in btrfs and do > if (iocb_is_dsync(iocb) && !(dio->flags & IOMAP_DIO_NOSYNC)) { > in __iomap_dio_rw(), you mean? Roughly, yes. > I wonder if we want something of that sort in another user of IOMAP_DIO_PARTIAL > (gfs2, that is)... I don't think gfs2 needs it, but it might be worth to take another look at how it handles sync writes.