target: make ->shutdown_session optional
authorChristoph Hellwig <hch@lst.de>
Mon, 2 May 2016 13:45:21 +0000 (15:45 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 May 2016 08:19:18 +0000 (01:19 -0700)
commit22d11759a4e7018f8cd7914e4e706ca2c96d6c01
tree788d1e4e1828d66f60f9d444c298081013e4d7fa
parentfba81f8831b20272a97a990e5d47c332e9b1f65d
target: make ->shutdown_session optional

Turns out the template and thus many drivers got the return value wrong:
0 means the fabrics driver needs to put a session reference, which no
driver except for the iSCSI target drivers did.  Fortunately none of these
drivers supports explicit Node ACLs, so the bug was harmless.

Even without that only qla2xxx and iscsi every did real work in
shutdown_session, so get rid of the boilerplate code in all other
drivers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
12 files changed:
Documentation/target/tcm_mod_builder.py
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/target/loopback/tcm_loop.c
drivers/target/sbp/sbp_target.c
drivers/target/target_core_configfs.c
drivers/target/target_core_tpg.c
drivers/target/tcm_fc/tcm_fc.h
drivers/target/tcm_fc/tfc_conf.c
drivers/target/tcm_fc/tfc_sess.c
drivers/usb/gadget/function/f_tcm.c
drivers/vhost/scsi.c
drivers/xen/xen-scsiback.c