]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target: refactor init/drop_nodeacl methods
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Apr 2015 17:51:14 +0000 (19:51 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 31 May 2015 05:41:51 +0000 (22:41 -0700)
commitc7d6a803926bae9bbf4510a18fc8dd8957cc0e01
treeae0859fb2d4d955c4249434307e29e690bec85bd
parente1750d20e69477c0d7b26d6e0ba24c3c9ec47530
target: refactor init/drop_nodeacl methods

By always allocating and adding, respectively removing and freeing
the se_node_acl structure in core code we can remove tons of repeated
code in the init_nodeacl and drop_nodeacl routines.  Additionally
this now respects the get_default_queue_depth method in this code
path as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
14 files changed:
Documentation/target/tcm_mod_builder.py
Documentation/target/tcm_mod_builder.txt
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/scsi/qla2xxx/tcm_qla2xxx.c
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/sbp/sbp_target.c
drivers/target/target_core_fabric_configfs.c
drivers/target/target_core_internal.h
drivers/target/target_core_tpg.c
drivers/target/tcm_fc/tfc_conf.c
drivers/usb/gadget/legacy/tcm_usb_gadget.c
drivers/vhost/scsi.c
drivers/xen/xen-scsiback.c
include/target/target_core_fabric.h