diff options
| author | Mike Christie <[email protected]> | 2018-08-02 12:12:24 -0500 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-08-02 15:29:31 -0400 |
| commit | fb7c70f2d750a462c5a9757555bc23bf35360cec (patch) | |
| tree | 757a3a896411020a02b51d19fe49b793ee96d5e8 /include/target | |
| parent | fa834287300ba6a89e0a590f520a3398527eb541 (diff) | |
scsi: target: add session removal function
This adds a function to remove a session which should be used by drivers
that use target_setup_session. The next patches will convert the target
drivers to use this new function.
Signed-off-by: Mike Christie <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Chris Boot <[email protected]>
Cc: Bryant G. Ly <[email protected]>
Cc: Michael Cyr <[email protected]>
Cc: <[email protected]>
Cc: Johannes Thumshirn <[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]>
Diffstat (limited to 'include/target')
| -rw-r--r-- | include/target/target_core_fabric.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index fbcc9a4025b9..f4147b398431 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h @@ -114,6 +114,7 @@ struct se_session *target_setup_session(struct se_portal_group *, const char *, void *, int (*callback)(struct se_portal_group *, struct se_session *, void *)); +void target_remove_session(struct se_session *); void transport_init_session(struct se_session *); struct se_session *transport_alloc_session(enum target_prot_op); |