target: Convert demo-mode only drivers to target_alloc_session
authorChristoph Hellwig <hch@lst.de>
Sat, 9 Jan 2016 13:30:45 +0000 (05:30 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Mar 2016 05:44:28 +0000 (21:44 -0800)
commitfb444abe61f5a943a41870d71eab8c4402bd46ab
treefed0a4e17519cb91a6b85b8de1857891202a1c50
parent7861728d42338e1efac9d400c39319c1b5efd05c
target: Convert demo-mode only drivers to target_alloc_session

This patch converts existing loopback, usb-gadget, and
xen-scsiback demo-mode only fabric drivers to use the
new target_alloc_session API caller.

This includes adding a new alloc_session callback for
fabric driver internal nexus pointer assignments.

(Fixes for early for-next nexus breakage - Dan Carpenter)

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Acked-by: Juergen Gross <jgross@suse.com>
Tested-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Tested-by: Chris Boot <bootc@bootc.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c
drivers/target/sbp/sbp_target.c
drivers/usb/gadget/function/f_tcm.c
drivers/xen/xen-scsiback.c