aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_configfs.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-07-17 05:57:58 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-07-22 05:37:49 -0400
commit5de619a31d9cb051d1f818e661af4e54def82316 (patch)
treebbdf282c42fe3818607fff4f3a4f7d1b74ee064e /drivers/target/target_core_configfs.c
parent1d20bb6147954d4fbd337a3d1b40c7eeae254cd7 (diff)
target: Update QUEUE ALGORITHM MODIFIER control page default
This patch adds the default 'Unrestricted reordering allowed' for SCSI control mode page QUEUE ALGORITHM MODIFIER on a per se_device basis in target_modesense_control() following spc4r23. This includes a new emuluate_rest_reord configfs attribute that currently (only) accepts zero to signal 'Unrestricted reordering allowed' in control mode page usage by the backend target device. Reported-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
Diffstat (limited to 'drivers/target/target_core_configfs.c')
-rw-r--r--drivers/target/target_core_configfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index e56c39daeec6..a92176d2e187 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -701,6 +701,9 @@ SE_DEV_ATTR(enforce_pr_isids, S_IRUGO | S_IWUSR);
701DEF_DEV_ATTRIB(is_nonrot); 701DEF_DEV_ATTRIB(is_nonrot);
702SE_DEV_ATTR(is_nonrot, S_IRUGO | S_IWUSR); 702SE_DEV_ATTR(is_nonrot, S_IRUGO | S_IWUSR);
703 703
704DEF_DEV_ATTRIB(emulate_rest_reord);
705SE_DEV_ATTR(emulate_rest_reord, S_IRUGO | S_IWUSR);
706
704DEF_DEV_ATTRIB_RO(hw_block_size); 707DEF_DEV_ATTRIB_RO(hw_block_size);
705SE_DEV_ATTR_RO(hw_block_size); 708SE_DEV_ATTR_RO(hw_block_size);
706 709
@@ -750,6 +753,7 @@ static struct configfs_attribute *target_core_dev_attrib_attrs[] = {
750 &target_core_dev_attrib_emulate_tpws.attr, 753 &target_core_dev_attrib_emulate_tpws.attr,
751 &target_core_dev_attrib_enforce_pr_isids.attr, 754 &target_core_dev_attrib_enforce_pr_isids.attr,
752 &target_core_dev_attrib_is_nonrot.attr, 755 &target_core_dev_attrib_is_nonrot.attr,
756 &target_core_dev_attrib_emulate_rest_reord.attr,
753 &target_core_dev_attrib_hw_block_size.attr, 757 &target_core_dev_attrib_hw_block_size.attr,
754 &target_core_dev_attrib_block_size.attr, 758 &target_core_dev_attrib_block_size.attr,
755 &target_core_dev_attrib_hw_max_sectors.attr, 759 &target_core_dev_attrib_hw_max_sectors.attr,