summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/scsi
diff options
context:
space:
mode:
authorwebaker <none@none>2006-02-25 15:31:09 -0800
committerwebaker <none@none>2006-02-25 15:31:09 -0800
commitbef6b7d21f0ed28d93540f86402920a81ebce608 (patch)
tree639536c5e543c060b267d15479af9166995d7e55 /usr/src/uts/common/sys/scsi
parent5a59a8b3d86e67dbe75588879c46e3629f40efec (diff)
downloadillumos-gate-bef6b7d21f0ed28d93540f86402920a81ebce608.tar.gz
6322205 Enable disk write cache if ZFS owns the disk
Diffstat (limited to 'usr/src/uts/common/sys/scsi')
-rw-r--r--usr/src/uts/common/sys/scsi/targets/sddef.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/usr/src/uts/common/sys/scsi/targets/sddef.h b/usr/src/uts/common/sys/scsi/targets/sddef.h
index 17123c3b72..d0994e988e 100644
--- a/usr/src/uts/common/sys/scsi/targets/sddef.h
+++ b/usr/src/uts/common/sys/scsi/targets/sddef.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -489,7 +488,11 @@ struct sd_lun {
/* device is attached */
un_f_log_sense_supported :1, /* support log sense */
un_f_pm_supported :1, /* support power-management */
- un_f_reserved :16;
+ un_f_cfg_is_lsi :1, /* Is LSI device, */
+ /* default to NO */
+ un_f_wcc_inprog :1, /* write cache change in */
+ /* progress */
+ un_f_reserved :14;
/* Ptr to table of strings for ASC/ASCQ error message printing */
struct scsi_asq_key_strings *un_additional_codes;
@@ -561,14 +564,8 @@ struct sd_lun {
/* Callback routine active counter */
short un_in_callback;
- /*
- * Another bit fields for various configuration/state/status info.
- * Comments indicate the condition if the value of the
- * variable is TRUE (nonzero).
- */
- uint32_t
- un_f_cfg_is_lsi :1, /* Is LSI device, default to NO */
- un_f_pad_uint32 :1; /* padding, 31 bits available */
+ kcondvar_t un_wcc_cv; /* synchronize changes to */
+ /* un_f_write_cache_enabled */
#ifdef SD_FAULT_INJECTION
/* SD Fault Injection */