diff options
author | Christoph Hellwig <hch@lst.de> | 2016-05-02 09:45:23 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-05-10 04:19:33 -0400 |
commit | e3dc0e316559de8c0139bc84d82244e0907c4f17 (patch) | |
tree | 811bca90582fe30bf1605a7a82c037b05851caf9 /drivers/scsi/qla2xxx/qla_target.h | |
parent | 36ec2ddc0d9309d52e14eb84c0807a78604460dc (diff) |
tcm_qla2xxx: introduce a private sess_kref
This stops abusing the common sess_kref to overload it for private
usage, which allows removing the shutdown_session method as well.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_target.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index d857feeb6514..f26c5f60eedd 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h | |||
@@ -738,7 +738,6 @@ struct qla_tgt_func_tmpl { | |||
738 | struct qla_tgt_sess *(*find_sess_by_s_id)(struct scsi_qla_host *, | 738 | struct qla_tgt_sess *(*find_sess_by_s_id)(struct scsi_qla_host *, |
739 | const uint8_t *); | 739 | const uint8_t *); |
740 | void (*clear_nacl_from_fcport_map)(struct qla_tgt_sess *); | 740 | void (*clear_nacl_from_fcport_map)(struct qla_tgt_sess *); |
741 | void (*put_sess)(struct qla_tgt_sess *); | ||
742 | void (*shutdown_sess)(struct qla_tgt_sess *); | 741 | void (*shutdown_sess)(struct qla_tgt_sess *); |
743 | }; | 742 | }; |
744 | 743 | ||
@@ -930,6 +929,7 @@ struct qla_tgt_sess { | |||
930 | int generation; | 929 | int generation; |
931 | 930 | ||
932 | struct se_session *se_sess; | 931 | struct se_session *se_sess; |
932 | struct kref sess_kref; | ||
933 | struct scsi_qla_host *vha; | 933 | struct scsi_qla_host *vha; |
934 | struct qla_tgt *tgt; | 934 | struct qla_tgt *tgt; |
935 | 935 | ||
@@ -1101,7 +1101,7 @@ extern int qlt_remove_target(struct qla_hw_data *, struct scsi_qla_host *); | |||
1101 | extern int qlt_lport_register(void *, u64, u64, u64, | 1101 | extern int qlt_lport_register(void *, u64, u64, u64, |
1102 | int (*callback)(struct scsi_qla_host *, void *, u64, u64)); | 1102 | int (*callback)(struct scsi_qla_host *, void *, u64, u64)); |
1103 | extern void qlt_lport_deregister(struct scsi_qla_host *); | 1103 | extern void qlt_lport_deregister(struct scsi_qla_host *); |
1104 | extern void qlt_unreg_sess(struct qla_tgt_sess *); | 1104 | void qlt_put_sess(struct qla_tgt_sess *sess); |
1105 | extern void qlt_fc_port_added(struct scsi_qla_host *, fc_port_t *); | 1105 | extern void qlt_fc_port_added(struct scsi_qla_host *, fc_port_t *); |
1106 | extern void qlt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *, int); | 1106 | extern void qlt_fc_port_deleted(struct scsi_qla_host *, fc_port_t *, int); |
1107 | extern int __init qlt_init(void); | 1107 | extern int __init qlt_init(void); |