zfs/include/os/linux
Rob N 8f1b7a6fa6
vdev_disk: disable flushes if device does not support it
If the underlying device doesn't have a write-back cache, the kernel
will just return a successful response. This doesn't hurt anything, but
it's extra work on the IO taskqs that are unnecessary. So, detect this
when we open the device for the first time.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16148
2024-05-02 15:18:35 -07:00
..
kernel/linux vdev_disk: disable flushes if device does not support it 2024-05-02 15:18:35 -07:00
spl dkio: remove kernel dkio.h compatibility header 2024-04-11 17:17:18 -07:00
zfs/sys zio: remove io_cmd and DKIOCFLUSHWRITECACHE 2024-04-11 17:17:11 -07:00
Makefile.am dkio: remove kernel dkio.h compatibility header 2024-04-11 17:17:18 -07:00