Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Nov 2015 07:59:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-scsi@FreeBSD.org
Subject:   [Bug 204298] xpt_release_device() panic: mutex CAM queue lock not owned
Message-ID:  <bug-204298-5312-LObF5tAJYo@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204298-5312@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204298-5312@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204298

--- Comment #6 from Scott M. Ferris <smferris@gmail.com> ---
Created attachment 162840
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=162840&action=edit
revised patch with a LOR fix and mav's cleanups

I attached a revised patch that tries to fix the LOR and incorporate mav's
cleanups.

The acquire side is handled by taking a device ref for the callout before we
know if we need another ref, and releasing the extra ref if we discover we
don't need it.

The release side is handled using CALLOUT_RETURNUNLOCKED so that the callout
can just unlock devq->send_mtx and then xpt_release_device().

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204298-5312-LObF5tAJYo>