summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-04-14 20:52:22 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2015-04-16 07:46:30 +0200
commitbffb5128f91e820fd8804307a6431607c2c840a4 (patch)
tree1818f73d151f880d2e829acd8a6573a57001a1e8 /include
parenttarget/rd: Don't pass incomplete scatterlist entries to sbc_dif_verify_* (diff)
downloadlinux-bffb5128f91e820fd8804307a6431607c2c840a4.tar.xz
linux-bffb5128f91e820fd8804307a6431607c2c840a4.zip
target: Ensure sess_prot_type is saved across session restart
The following incremental patch saves the current sess_prot_type into se_node_acl, and will always reset sess_prot_type if a previous saved value exists. So the PI setting for the fabric's session with backend devices not supporting PI is persistent across session restart. (Fix se_node_acl dereference for discovery sessions - DanCarpenter) Reviewed-by: Martin Petersen <martin.petersen@oracle.com> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index e1de142b7b07..480e9f82dfea 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -589,6 +589,7 @@ struct se_node_acl {
bool acl_stop:1;
u32 queue_depth;
u32 acl_index;
+ enum target_prot_type saved_prot_type;
#define MAX_ACL_TAG_SIZE 64
char acl_tag[MAX_ACL_TAG_SIZE];
/* Used for PR SPEC_I_PT=1 and REGISTER_AND_MOVE */