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.

Approved by: re (gjb)
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

(cherry picked from commit 4640df1b0a49697840b81f6bcd269a483514c6aa)
(cherry picked from commit 29de7af6ee47a3a251763e4220203a0d960ea532)

Details

Provenance
markjAuthored on Oct 7 2023, 12:31 AM
Reviewer
imp
Differential Revision
D39559: mrsas: Fix callout locking
Parents
rG0022bd418e6c: fusefs: sanitize FUSE_READLINK results for embedded NULs
Branches
Unknown
Tags
Unknown