]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target: Convert se_tpg->acl_node_lock to ->acl_node_mutex
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 8 Mar 2015 22:33:47 +0000 (22:33 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 1 Jun 2015 07:24:44 +0000 (00:24 -0700)
commit403edd78a2851ef95b24c0bf5151a4ab640898d7
tree66ab8314fe3281d25f8fced91c973d5b6d5c40ba
parent6bb826121be244a5a3c8bd8b7d45c47df18810b7
target: Convert se_tpg->acl_node_lock to ->acl_node_mutex

This patch converts se_tpg->acl_node_lock to struct mutex, so that
->acl_node_acl walkers in core_clear_lun_from_tpg() can block when
calling core_disable_device_list_for_node().

It also updates core_dev_add_lun() to hold ->acl_node_mutex when
calling core_tpg_add_node_to_devs() to build ->lun_entry_hlist
for dynamically generated se_node_acl.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_pr.c
drivers/target/target_core_tpg.c
drivers/target/target_core_transport.c
drivers/target/tcm_fc/tfc_conf.c
include/target/target_core_base.h