summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2018-11-23 18:36:11 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-11-28 18:50:53 -0500
commit6baca7601bdee2e57f20c45d63eb53b89b33e816 (patch)
tree54bed3bbd63a1401e39be2b2ddfe6f13d232e128 /include/target
parent359d0ac1e806caa6c233e32d33c8970aa94f6cb7 (diff)
downloadlinux-6baca7601bdee2e57f20c45d63eb53b89b33e816.tar.gz
linux-6baca7601bdee2e57f20c45d63eb53b89b33e816.tar.bz2
linux-6baca7601bdee2e57f20c45d63eb53b89b33e816.zip
scsi: target: drop unused pi_prot_format attribute storage
On write, the pi_prot_format configfs attribute invokes the device format_prot() callback if present. Read dumps the contents of se_dev_attrib.pi_prot_format which is always zero. Make the configfs attribute write-only, and drop the always zero se_dev_attrib.pi_prot_format storage. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index c15054116b86..53b90cc18902 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -667,7 +667,6 @@ struct se_dev_attrib {
int emulate_caw;
int emulate_3pc;
int emulate_pr;
- int pi_prot_format;
enum target_prot_type pi_prot_type;
enum target_prot_type hw_pi_prot_type;
int pi_prot_verify;