iscsi-target: remove usage of ->shutdown_session
authorChristoph Hellwig <hch@lst.de>
Mon, 2 May 2016 13:45:24 +0000 (15:45 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 May 2016 08:19:41 +0000 (01:19 -0700)
commit44f33d0fb5a7181cc34529c211d7b5039d8a0a4b
tree799565ccc5aa83e2488d50342867f87b6862b750
parente3dc0e316559de8c0139bc84d82244e0907c4f17
iscsi-target: remove usage of ->shutdown_session

->shutdown session only decideŃ• if the target core calls ->close_session
directly, or if the fabrics drivers calls it manually later through
target_put_session, which at this point will always close the session as
it has been removed from the lookup list and thus no new references will
be acquired from the core.

So instead remove ->shutdown and have the core call ->close_session
directly, and replace all calls to target_put_session in the iSCSI target
with direct calls to iscsit_close_session.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_erl0.c
drivers/target/iscsi/iscsi_target_login.c