summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_da.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 2393013..a734e37 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1991,8 +1991,10 @@ dashutdown(void * arg, int howto)
* if the drive is capable of it..
*/
if (((softc->flags & DA_FLAG_OPEN) == 0)
- || (softc->quirks & DA_Q_NO_SYNC_CACHE))
+ || (softc->quirks & DA_Q_NO_SYNC_CACHE)) {
+ cam_periph_unlock(periph);
continue;
+ }
xpt_setup_ccb(&ccb.ccb_h, periph->path, /*priority*/1);
OpenPOWER on IntegriCloud