kernel - Correct missing unlock in SCSI pass device
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 30 Aug 2010 19:27:11 +0000 (12:27 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 30 Aug 2010 19:27:11 +0000 (12:27 -0700)
* Correct a missing sim unlock, which matters more now that
  the sim lock might not be the mp lock.

sys/bus/cam/scsi/scsi_pass.c

index 23b9771..6b9592d 100644 (file)
@@ -295,6 +295,7 @@ passregister(struct cam_periph *periph, void *arg)
 
        if (bootverbose)
                xpt_announce_periph(periph, NULL);
+       CAM_SIM_UNLOCK(periph->sim);
 
        return(CAM_REQ_CMP);
 }