linux_dsm_epyc7002/drivers/infiniband/ulp
Nicholas Bellinger f246c94154 ib_srpt: Convert acl lookup to modern get_initiator_node_acl usage
This patch does a simple conversion of ib_srpt code to use
proper modern core_tpg_get_initiator_node_acl() lookup using
se_node_acl->acl_kref, and drops the legacy internal list
usage from srpt_lookup_acl().

This involves doing transport_init_session() earlier, and
making sure transport_free_session() is called during
a se_node_acl lookup failure to drop the last ->acl_kref.

Also, it adds a minor backwards-compat hack to avoid the
potential for user-space wrt node-acl WWPN formatting by
simply stripping off '0x' prefix from ch->sess_name, and
retrying once if core_tpg_get_initiator_node_acl() fails.

Finally, go ahead and drop port_acl_list port_acl_lock
since they are no longer used.

Cc: Vu Pham <vu@mellanox.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2016-01-12 23:44:32 -08:00
..
ipoib Merge branch 'wr-cleanup' into k.o/for-4.4 2015-10-28 22:23:34 -04:00
iser IB/iser: Port to new fast registration API 2015-10-28 22:27:18 -04:00
isert iser-target: Fix non negative ERR_PTR isert_device_get usage 2016-01-07 13:57:51 -08:00
srp SCSI misc on 20151113 2015-11-13 20:35:54 -08:00
srpt ib_srpt: Convert acl lookup to modern get_initiator_node_acl usage 2016-01-12 23:44:32 -08:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00