]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target/configfs: Kill se_lun->lun_link_magic
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 1 Jun 2017 10:11:18 +0000 (03:11 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 9 Jun 2017 06:26:38 +0000 (23:26 -0700)
commit9ae0e9ade56f23765366d2cfad24e65f28df977d
treea0a5fb5708897a05969054e29b4179e1e9f16e3d
parentc17cd24959cdb12c855dc61e20c36fa25f21f3d3
target/configfs: Kill se_lun->lun_link_magic

Instead of using a hardcoded magic value in se_lun when verifying
a target config_item symlink source during target_fabric_mappedlun_link(),
go ahead and use target_fabric_port_item_ops directly instead.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_fabric_configfs.c
drivers/target/target_core_tpg.c
include/target/target_core_base.h