HomeFreeBSD

linux/zvol_os: fix SET_ERROR with negative return codes

Description

linux/zvol_os: fix SET_ERROR with negative return codes

SET_ERROR is our facility for tracking errors internally. The negation
is to match the what the kernel expects from us. Thus, the negation
should happen outside of the SET_ERROR.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16364

Details

Provenance
rob.norris_klarasystems.comAuthored on Jul 18 2024, 3:13 AM
Tony Hutter <hutter2@llnl.gov>Committed on Aug 22 2024, 10:11 PM
Parents
rG0172ee525bb3: ZTS: fix io_uring test on RHEL 9 variants (#16411)
Branches
Unknown
Tags
Unknown