mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
scsi: target: loop, usb, vhost, xen: use target_remove_session
This converts drivers that were only calling transport_deregister_session to use target_remove_session. The calling of transport_deregister_session_configfs via target_remove_session for these types of drivers is ok, because they were not exporting info from fields like sess_acl_list, sess->se_tpg and sess->fabric_sess_ptr from configfs accessible functions, so they will see no difference. Signed-off-by: Mike Christie <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Felipe Balbi <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Andrzej Pietrasiewicz <[email protected]> Cc: Michael S. Tsirkin <[email protected]> Cc: Juergen Gross <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
60daca1006
commit
25b88550b7
4 changed files with 4 additions and 4 deletions
|
|
@ -1576,7 +1576,7 @@ static int scsiback_drop_nexus(struct scsiback_tpg *tpg)
|
|||
/*
|
||||
* Release the SCSI I_T Nexus to the emulated xen-pvscsi Target Port
|
||||
*/
|
||||
transport_deregister_session(tv_nexus->tvn_se_sess);
|
||||
target_remove_session(se_sess);
|
||||
tpg->tpg_nexus = NULL;
|
||||
mutex_unlock(&tpg->tv_tpg_mutex);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue