summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-04-14 11:52:22 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2015-04-15 22:46:30 -0700
commitbffb5128f91e820fd8804307a6431607c2c840a4 (patch)
tree1818f73d151f880d2e829acd8a6573a57001a1e8 /include/target
parentbfd9a53e0110442eeef670227907bdd14def94e1 (diff)
downloadlinux-stable-bffb5128f91e820fd8804307a6431607c2c840a4.tar.gz
linux-stable-bffb5128f91e820fd8804307a6431607c2c840a4.tar.bz2
linux-stable-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/target')
-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 */