summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2017-12-11 20:21:35 +0000
committerasomers <asomers@FreeBSD.org>2017-12-11 20:21:35 +0000
commit464bfd30b94a830ef5710d458dba453495e71b6e (patch)
tree3fc5a33fd0ddc055c67acd93fa54b7681e056f38 /sys/cam
parent18800f4ac5e6eb1ed3f7d389d12069d24779e0f4 (diff)
downloadFreeBSD-src-464bfd30b94a830ef5710d458dba453495e71b6e.zip
FreeBSD-src-464bfd30b94a830ef5710d458dba453495e71b6e.tar.gz
MFC r325959:
Add assertion in probedone() that we're holding the device lock. Submitted by: ken Reviewed by: asomers Sponsored by: Spectra Logic Corp
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_xpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c
index a43c6b6..a65066e 100644
--- a/sys/cam/scsi/scsi_xpt.c
+++ b/sys/cam/scsi/scsi_xpt.c
@@ -1128,6 +1128,7 @@ probedone(struct cam_periph *periph, union ccb *done_ccb)
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:
OpenPOWER on IntegriCloud