aboutsummaryrefslogtreecommitdiff
path: root/sys/cam
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2007-04-19 22:18:15 +0000
committerScott Long <scottl@FreeBSD.org>2007-04-19 22:18:15 +0000
commit919c80dfc7a6e9aa68aec195392135153e228253 (patch)
tree913efe2f68e53064f86167794a253a2a2d34fe56 /sys/cam
parent7628acd8ee72924b811aad8c68150f6532ff36af (diff)
Notes
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 23930135e4fe..a734e37738d8 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);