linux/drivers/target/tcm_fc
Mike Christie 60daca1006 scsi: tcm_fc: use target_remove_session
This converts tcm_fc to use target_remove_session

tcm_fc was calling transport_deregister_session_configfs then calling
transport_deregister_session when commands have completed. It should be ok
for it to call transport_deregister_session_configfs later via
target_remove_session because transport_deregister_session_configfs only
prevents access from configfs via tpg removal and its call to the
close_session callback for that driver, and this is already protected by
the ft_lport_lock and its port lookup handling.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-08-02 15:29:31 -04:00
..
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tcm_fc.h target: Minimize #include directives 2016-12-09 10:22:28 -08:00
tfc_cmd.c scsi: target: Convert target drivers to use sbitmap 2018-06-19 22:02:25 -04:00
tfc_conf.c scsi: target: Remove second argument from fabric_make_tpg() 2018-07-02 16:44:32 -04:00
tfc_io.c scsi: libfc: Replace ->seq_start_next callback with function call 2016-11-08 17:29:56 -05:00
tfc_sess.c scsi: tcm_fc: use target_remove_session 2018-08-02 15:29:31 -04:00