Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2017 20:21:35 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r326777 - stable/11/sys/cam/scsi
Message-ID:  <201712112021.vBBKLZsu033422@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Mon Dec 11 20:21:35 2017
New Revision: 326777
URL: https://svnweb.freebsd.org/changeset/base/326777

Log:
  MFC r325959:
  
  Add assertion in probedone() that we're holding the device lock.
  
  Submitted by:	ken
  Reviewed by:	asomers
  Sponsored by:	Spectra Logic Corp

Modified:
  stable/11/sys/cam/scsi/scsi_xpt.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- stable/11/sys/cam/scsi/scsi_xpt.c	Mon Dec 11 20:04:40 2017	(r326776)
+++ stable/11/sys/cam/scsi/scsi_xpt.c	Mon Dec 11 20:21:35 2017	(r326777)
@@ -1128,6 +1128,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?201712112021.vBBKLZsu033422>