target: Ensure sess_prot_type is saved across session restart
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 14 Apr 2015 18:52:22 +0000 (11:52 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 16 Apr 2015 05:46:30 +0000 (22:46 -0700)
commitbffb5128f91e820fd8804307a6431607c2c840a4
tree1818f73d151f880d2e829acd8a6573a57001a1e8
parentbfd9a53e0110442eeef670227907bdd14def94e1
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>
drivers/target/target_core_transport.c
include/target/target_core_base.h