diff options
author | Rob N <robn@despairlabs.com> | 2024-05-02 22:18:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 22:18:35 +0000 |
commit | 8f1b7a6fa6762ea4c89198ceb11c521f80b92ddc (patch) | |
tree | 1dadb509ae98de1438f372a753402f1dbd87a83f /include/os/freebsd/spl/sys/cred.h | |
parent | 645b83307918085ab2f0e12618809e348635b34f (diff) | |
download | src-8f1b7a6fa6762ea4c89198ceb11c521f80b92ddc.tar.gz src-8f1b7a6fa6762ea4c89198ceb11c521f80b92ddc.zip |
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
Diffstat (limited to 'include/os/freebsd/spl/sys/cred.h')
0 files changed, 0 insertions, 0 deletions