From df9766ca9da5d9c1f2bb4eea9c9f16a2e7e8e1a5 Mon Sep 17 00:00:00 2001 From: Nicholas Bellinger Date: Fri, 22 May 2015 02:05:19 +0000 Subject: [PATCH] target: Only reset specific dynamic entries during lun_group creation This patch changes core_tpg_add_node_to_devs() to avoid unnecessarly resetting every se_dev_entry in se_node_acl->tpg_lun_hlist when the operation is driven by an explicit configfs se_lun->lun_group creation via core_dev_add_lun() to only update a single se_lun. Otherwise for the second core_tpg_check_initiator_node_acl() case, go ahead and continue to scan the full set of currently active se_lun in se_portal_group->tpg_lun_hlist. Reviewed-by: Hannes Reinecke Cc: Christoph Hellwig Cc: Sagi Grimberg Signed-off-by: Nicholas Bellinger --- Reading git-format-patch failed