HomeFreeBSD

mrsas: Fix callout locking in mrsas_complete_cmd()

Description

mrsas: Fix callout locking in mrsas_complete_cmd()

callout_stop() requires the associated lock to be held.

This is a bit hacky, but I believe it's safe since the subsequent
mrsas_cmd_done() call will also acquire the SIM lock to stop a different
callout.

PR: 265484
Reviewed by: imp
Tested by: Jérémie Jourdin <jeremie.jourdin@advens.fr>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39559

Details

Provenance
markjAuthored on Oct 7 2023, 12:31 AM
Reviewer
imp
Differential Revision
D39559: mrsas: Fix callout locking
Parents
rG8399d764c929: Fix intermittency in the sys.fs.fusefs.symlink.main test
Branches
Unknown
Tags
Unknown