View | Details | Raw Unified | Return to bug 219857 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/cam/scsi/scsi_cd.c (-1 / +2 lines)
Lines 1032-1038 cdstart(struct cam_periph *periph, union ccb *start_ccb) Link Here
1032
		 * If the CD is already locked, we don't need to do this.
1032
		 * If the CD is already locked, we don't need to do this.
1033
		 * Move on to the capacity check.
1033
		 * Move on to the capacity check.
1034
		 */
1034
		 */
1035
		if ((softc->flags & CD_FLAG_DISC_LOCKED) != 0) {
1035
		if (softc->state == CD_STATE_MEDIA_PREVENT &&
1036
		    (softc->flags & CD_FLAG_DISC_LOCKED) != 0) {
1036
			softc->state = CD_STATE_MEDIA_SIZE;
1037
			softc->state = CD_STATE_MEDIA_SIZE;
1037
			xpt_release_ccb(start_ccb);
1038
			xpt_release_ccb(start_ccb);
1038
			xpt_schedule(periph, CAM_PRIORITY_NORMAL);
1039
			xpt_schedule(periph, CAM_PRIORITY_NORMAL);

Return to bug 219857