]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: Drop incorrect se_lun_acl release for dynamic -> explict ACL conversion
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 May 2012 05:05:49 +0000 (22:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 17:46:21 +0000 (10:46 -0700)
commit6b1d13f897e2b08a66724c685c06f35dc8e114d4
tree3a8fab1a46b7936b80ad49622c731c53ce2e167f
parentf044a884e3d24fa112e9198b66a83074020d85ca
target: Drop incorrect se_lun_acl release for dynamic -> explict ACL conversion

commit cfebf8f42f47327fa54cf05c19b98f4bd5236a26 upstream.

This patch removes some potentially problematic legacy code within
core_clear_initiator_node_from_tpg() that was originally intended to
release left over se_lun_acl setup during dynamic NodeACL+MappedLUN
generate when running with TPG demo-mode operation.

Since we now only ever expect to allocate and release se_lun_acl from
within target_core_fabric_configfs.c:target_fabric_make_mappedlun() and
target_fabric_drop_mappedlun() context respectively, this code for
demo-mode release is incorrect and needs to be removed.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_tpg.c