projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'lsk/v3.10/topic/mailbox' into linux-linaro-lsk
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
target
/
target_core_tpg.c
diff --git
a/drivers/target/target_core_tpg.c
b/drivers/target/target_core_tpg.c
index aac9d2727e3c8584a20db563ef5c914bc758de19..8572207e3d4d77cf7a800855043dd26be7362844 100644
(file)
--- a/
drivers/target/target_core_tpg.c
+++ b/
drivers/target/target_core_tpg.c
@@
-40,6
+40,7
@@
#include <target/target_core_fabric.h>
#include "target_core_internal.h"
#include <target/target_core_fabric.h>
#include "target_core_internal.h"
+#include "target_core_pr.h"
extern struct se_device *g_lun0_dev;
extern struct se_device *g_lun0_dev;
@@
-165,6
+166,13
@@
void core_tpg_add_node_to_devs(
core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun,
lun_access, acl, tpg);
core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun,
lun_access, acl, tpg);
+ /*
+ * Check to see if there are any existing persistent reservation
+ * APTPL pre-registrations that need to be enabled for this dynamic
+ * LUN ACL now..
+ */
+ core_scsi3_check_aptpl_registration(dev, tpg, lun, acl,
+ lun->unpacked_lun);
spin_lock(&tpg->tpg_lun_lock);
}
spin_unlock(&tpg->tpg_lun_lock);
spin_lock(&tpg->tpg_lun_lock);
}
spin_unlock(&tpg->tpg_lun_lock);