diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-10-04 00:23:15 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-10-04 01:40:19 -0400 |
commit | e24805637d2d270d7975502e9024d473de86afdb (patch) | |
tree | 36277763794b04de9628d2d51889e6f0b77be26e /drivers/target/target_core_device.c | |
parent | f4c24db1b7ad0ce84409e15744d26c6f86a96840 (diff) |
target: Fix APTPL metadata handling for dynamic MappedLUNs
This patch fixes a bug in handling of SPC-3 PR Activate Persistence
across Target Power Loss (APTPL) logic where re-creation of state for
MappedLUNs from dynamically generated NodeACLs did not occur during
I_T Nexus establishment.
It adds the missing core_scsi3_check_aptpl_registration() call during
core_tpg_check_initiator_node_acl() -> core_tpg_add_node_to_devs() in
order to replay any pre-loaded APTPL metadata state associated with
the newly connected SCSI Initiator Port.
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r-- | drivers/target/target_core_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index f5057a2f4ed1..d18dd8b532a8 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c | |||
@@ -1399,7 +1399,8 @@ int core_dev_add_initiator_node_lun_acl( | |||
1399 | * Check to see if there are any existing persistent reservation APTPL | 1399 | * Check to see if there are any existing persistent reservation APTPL |
1400 | * pre-registrations that need to be enabled for this LUN ACL.. | 1400 | * pre-registrations that need to be enabled for this LUN ACL.. |
1401 | */ | 1401 | */ |
1402 | core_scsi3_check_aptpl_registration(lun->lun_se_dev, tpg, lun, lacl); | 1402 | core_scsi3_check_aptpl_registration(lun->lun_se_dev, tpg, lun, nacl, |
1403 | lacl->mapped_lun); | ||
1403 | return 0; | 1404 | return 0; |
1404 | } | 1405 | } |
1405 | 1406 | ||