mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
e1750d20e6
commit
c7d6a80392
14 changed files with 77 additions and 421 deletions
|
|
@ -1980,12 +1980,6 @@ static const struct target_core_fabric_ops scsiback_ops = {
|
|||
.fabric_drop_tpg = scsiback_drop_tpg,
|
||||
.fabric_post_link = scsiback_port_link,
|
||||
.fabric_pre_unlink = scsiback_port_unlink,
|
||||
.fabric_make_np = NULL,
|
||||
.fabric_drop_np = NULL,
|
||||
#if 0
|
||||
.fabric_make_nodeacl = scsiback_make_nodeacl,
|
||||
.fabric_drop_nodeacl = scsiback_drop_nodeacl,
|
||||
#endif
|
||||
|
||||
.tfc_wwn_attrs = scsiback_wwn_attrs,
|
||||
.tfc_tpg_base_attrs = scsiback_tpg_attrs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue