Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2017 20:53:52 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325959 - head/sys/cam/scsi
Message-ID:  <201711172053.vAHKrqJb013262@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711172053.vAHKrqJb013262>