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

(cherry picked from commit 4640df1b0a49697840b81f6bcd269a483514c6aa)

Details

Provenance
markjAuthored on Oct 7 2023, 12:31 AM
Reviewer
imp
Differential Revision
D39559: mrsas: Fix callout locking
Parents
rGbdd19ce53c07: vfs: convert recycles_count and recycles_free_count to mere u_long
Branches
Unknown
Tags
Unknown