HomeFreeBSD

vdev_disk: disable flushes if device does not support it

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on May 2 2024, 10:18 PM
GitHub <noreply@github.com>Committed on May 2 2024, 10:18 PM
Parents
rG645b83307918: Improve write issue taskqs utilization
Branches
Unknown
Tags
Unknown