]> git.ipfire.org Git - people/ms/linux.git/commit - fs/iomap/direct-io.c
teach iomap_dio_rw() to suppress dsync
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Jun 2022 20:04:03 +0000 (16:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 10 Jun 2022 20:03:35 +0000 (16:03 -0400)
commit36518b6b4da7e8d4387bc19ad21e772f1060e9d7
treeb091764545f997c76f720f13914f2b171d9737e4
parent0e3c3b901c00364198d31482fa2552ccf2d5c899
teach iomap_dio_rw() to suppress dsync

New flag, equivalent to removal of IOCB_DSYNC from iocb flags.
This mimics what btrfs is doing (and that's what btrfs will
switch to).  However, I'm not at all sure that we want to
suppress REQ_FUA for those - all btrfs hack really cares about
is suppression of generic_write_sync().  For now let's keep
the existing behaviour, but I really want to hear more detailed
arguments pro or contra.

[folded brain fix from willy]

Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/iomap/direct-io.c
include/linux/iomap.h