svn commit: r325959 - head/sys/cam/scsi
Alan Somers
asomers at FreeBSD.org
Fri Nov 17 20:53:54 UTC 2017
Author: asomers
Date: Fri Nov 17 20:53:52 2017
New Revision: 325959
URL: https://svnweb.freebsd.org/changeset/base/325959
Log:
Add assertion in probedone() that we're holding the device lock.
Submitted by: ken
Reviewed by: asomers
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Modified:
head/sys/cam/scsi/scsi_xpt.c
Modified: head/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- head/sys/cam/scsi/scsi_xpt.c Fri Nov 17 20:41:17 2017 (r325958)
+++ head/sys/cam/scsi/scsi_xpt.c Fri Nov 17 20:53:52 2017 (r325959)
@@ -1171,6 +1171,7 @@ probedone(struct cam_periph *periph, union ccb *done_c
softc = (probe_softc *)periph->softc;
path = done_ccb->ccb_h.path;
priority = done_ccb->ccb_h.pinfo.priority;
+ cam_periph_assert(periph, MA_OWNED);
switch (softc->action) {
case PROBE_TUR:
More information about the svn-src-all
mailing list