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
This commit is contained in:
Alan Somers 2017-11-17 20:53:52 +00:00
parent 18f23540d8
commit 1a69c11aab

View File

@ -1171,6 +1171,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: