HomeFreeBSD

flush: don't report flush error when disabling flush support

Description

flush: don't report flush error when disabling flush support

The first time a device returns ENOTSUP in repsonse to a flush request,
we set vdev_nowritecache so we don't issue flushes in the future and
instead just pretend the succeeded. However, we still return an error
for the initial flush, even though we just decided such errors are
meaningless!

So, when setting vdev_nowritecache in response to a flush error, also
reset the error code to assume success.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16855

Details

Provenance
rob.norris_klarasystems.comAuthored on Jul 1 2024, 1:19 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 13 2024, 8:19 PM
Parents
rG76f57ab9f748: build: use correct bashcompletiondir on arch
Branches
Unknown
Tags
Unknown