diff options
author | Christoph Hellwig <hch@lst.de> | 2016-05-02 09:45:22 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-05-10 04:19:26 -0400 |
commit | 36ec2ddc0d9309d52e14eb84c0807a78604460dc (patch) | |
tree | e03ae54dff98c6caadb3eacb0e0c74f312000ebf /drivers/vhost | |
parent | 22d11759a4e7018f8cd7914e4e706ca2c96d6c01 (diff) |
target: make close_session optional
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/scsi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index d2c60e5c48b3..9d6320e8ff3e 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c | |||
@@ -333,11 +333,6 @@ static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) | |||
333 | percpu_ida_free(&se_sess->sess_tag_pool, se_cmd->map_tag); | 333 | percpu_ida_free(&se_sess->sess_tag_pool, se_cmd->map_tag); |
334 | } | 334 | } |
335 | 335 | ||
336 | static void vhost_scsi_close_session(struct se_session *se_sess) | ||
337 | { | ||
338 | return; | ||
339 | } | ||
340 | |||
341 | static u32 vhost_scsi_sess_get_index(struct se_session *se_sess) | 336 | static u32 vhost_scsi_sess_get_index(struct se_session *se_sess) |
342 | { | 337 | { |
343 | return 0; | 338 | return 0; |
@@ -2109,7 +2104,6 @@ static struct target_core_fabric_ops vhost_scsi_ops = { | |||
2109 | .tpg_get_inst_index = vhost_scsi_tpg_get_inst_index, | 2104 | .tpg_get_inst_index = vhost_scsi_tpg_get_inst_index, |
2110 | .release_cmd = vhost_scsi_release_cmd, | 2105 | .release_cmd = vhost_scsi_release_cmd, |
2111 | .check_stop_free = vhost_scsi_check_stop_free, | 2106 | .check_stop_free = vhost_scsi_check_stop_free, |
2112 | .close_session = vhost_scsi_close_session, | ||
2113 | .sess_get_index = vhost_scsi_sess_get_index, | 2107 | .sess_get_index = vhost_scsi_sess_get_index, |
2114 | .sess_get_initiator_sid = NULL, | 2108 | .sess_get_initiator_sid = NULL, |
2115 | .write_pending = vhost_scsi_write_pending, | 2109 | .write_pending = vhost_scsi_write_pending, |