target: Add target_alloc_session() helper function
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 9 Jan 2016 13:29:24 +0000 (05:29 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 27 Feb 2016 22:59:42 +0000 (14:59 -0800)
commit7861728d42338e1efac9d400c39319c1b5efd05c
tree61e2af681747125dddf84fab7082ded53eabe37f
parent81f70ba233d5f660e1ea5fe23260ee323af5d53a
target: Add target_alloc_session() helper function

Based on HCH's original patch, this adds a full version to
support percpu-ida tag pre-allocation and callback function
pointer into fabric driver code to complete session setup.

Reported-by: Christoph Hellwig <hch@lst.de>
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>
drivers/target/target_core_transport.c
include/target/target_core_fabric.h