linux/drivers/target/iscsi
Nicholas Bellinger 99367f01b8 iscsi-target: Convert to use target_put_session + sess_kref
This patch converts iscsi-target session code to use se_sess->sess_kref
counting for iscsi session shutdown.  The following cases include:

*) last iscsit_close_connection() shutdown path to invoke close session
*) iscsit_logout_post_handler_closesession() for explict logout
*) iscsit_free_session() caller for explict shutdown

It also moves iscsit_stop_session() call from lio_tpg_close_session()
into lio_tpg_shutdown_session() TFO callbacks to invoke an explict
shutdown, and also changes iscsi_check_for_session_reinstatement()
login code to use se_sess->sess_kref.

(v2: Make iscsit_handle_time2retain_timeout() use target_put_session)

Cc: Andy Grover <agrover@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-03-10 14:42:25 -08:00
..
iscsi_target_auth.c iscsi-target: fix chap identifier simple_strtoul usage 2011-12-14 11:28:09 +00:00
iscsi_target_auth.h
iscsi_target_configfs.c iscsi-target: Convert to use target_put_session + sess_kref 2012-03-10 14:42:25 -08:00
iscsi_target_configfs.h
iscsi_target_core.h iscsi-target: Fix discovery with INADDR_ANY and IN6ADDR_ANY_INIT 2012-01-18 08:35:58 +00:00
iscsi_target_datain_values.c
iscsi_target_datain_values.h
iscsi_target_device.c target/iscsi: Remove unneeded wrapper functions 2012-02-25 14:37:47 -08:00
iscsi_target_device.h target/iscsi: Remove unneeded wrapper functions 2012-02-25 14:37:47 -08:00
iscsi_target_erl0.c iscsi-target: Convert to use target_put_session + sess_kref 2012-03-10 14:42:25 -08:00
iscsi_target_erl0.h
iscsi_target_erl1.c target: replace various cmd flags with a transport state 2012-02-25 14:37:45 -08:00
iscsi_target_erl1.h
iscsi_target_erl2.c target: header reshuffle, part2 2011-12-14 11:26:05 +00:00
iscsi_target_erl2.h
iscsi_target_login.c iscsi-target: Convert to use target_put_session + sess_kref 2012-03-10 14:42:25 -08:00
iscsi_target_login.h
iscsi_target_nego.c target: Fix typo in drivers/target 2012-03-10 13:55:05 -08:00
iscsi_target_nego.h
iscsi_target_nodeattrib.c target: remove useless casts 2011-12-14 11:28:07 +00:00
iscsi_target_nodeattrib.h
iscsi_target_parameters.c iscsi-target: Disable markers + remove dangerous local scope array usage 2011-09-16 19:37:18 +00:00
iscsi_target_parameters.h
iscsi_target_seq_pdu_list.c
iscsi_target_seq_pdu_list.h
iscsi_target_stat.c target: remove useless casts 2011-12-14 11:28:07 +00:00
iscsi_target_stat.h
iscsi_target_tmr.c target: replace various cmd flags with a transport state 2012-02-25 14:37:45 -08:00
iscsi_target_tmr.h
iscsi_target_tpg.c target: remove useless casts 2011-12-14 11:28:07 +00:00
iscsi_target_tpg.h
iscsi_target_tq.c target: Use LIST_HEAD()/DEFINE_MUTEX() for static objects 2012-02-25 14:37:46 -08:00
iscsi_target_tq.h
iscsi_target_util.c target: Add SCF_SCSI_TMR_CDB usage and drop se_tmr_req_cache 2012-02-25 14:37:47 -08:00
iscsi_target_util.h iscsi-target: Remove SCF_SE_LUN_CMD flag abuses 2011-10-24 03:20:56 +00:00
iscsi_target.c iscsi-target: Convert to use target_put_session + sess_kref 2012-03-10 14:42:25 -08:00
iscsi_target.h
Kconfig target: iscsi_target depends on NET 2011-07-28 20:16:18 +00:00
Makefile