[Bug 240917] panic: (scsi_da.c:2128, 12.1-BETA1) _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 08 Mar 2022 07:12:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240917

--- Comment #9 from commit-hook@FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=1987ff8abca2c9bdff7f385ea2fd1c60cf5b3aeb

commit 1987ff8abca2c9bdff7f385ea2fd1c60cf5b3aeb
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2022-01-04 01:21:58 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2022-03-08 07:07:46 +0000

    cam: don't lock while handling an AC_UNIT_ATTENTION

    Don't take the device_mtx lock in daasync() when handling an
    AC_UNIT_ATTENTION. Instead, assert the lock is held before modifying the
    periph's softc flags.

    The device_mtx lock is taken in xptdevicetraverse() before daasync()
    is eventually called in xpt_async_bcast().

    PR:             240917, 226510, 226578
    Reviewed by:    imp
    Differential Revision: https://reviews.freebsd.org/D27735

    (cherry picked from commit bb8441184bab60cd8a07c2b94bd6c4ae8b56ec25)

 sys/cam/scsi/scsi_da.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.