diff options
Diffstat (limited to 'drivers/vhost/scsi.c')
-rw-r--r-- | drivers/vhost/scsi.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index e48d4a672580..cf50ce93975b 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c | |||
@@ -539,6 +539,11 @@ static void tcm_vhost_queue_tm_rsp(struct se_cmd *se_cmd) | |||
539 | return; | 539 | return; |
540 | } | 540 | } |
541 | 541 | ||
542 | static void tcm_vhost_aborted_task(struct se_cmd *se_cmd) | ||
543 | { | ||
544 | return; | ||
545 | } | ||
546 | |||
542 | static void tcm_vhost_free_evt(struct vhost_scsi *vs, struct tcm_vhost_evt *evt) | 547 | static void tcm_vhost_free_evt(struct vhost_scsi *vs, struct tcm_vhost_evt *evt) |
543 | { | 548 | { |
544 | vs->vs_events_nr--; | 549 | vs->vs_events_nr--; |
@@ -1740,7 +1745,8 @@ static int tcm_vhost_make_nexus(struct tcm_vhost_tpg *tpg, | |||
1740 | */ | 1745 | */ |
1741 | tv_nexus->tvn_se_sess = transport_init_session_tags( | 1746 | tv_nexus->tvn_se_sess = transport_init_session_tags( |
1742 | TCM_VHOST_DEFAULT_TAGS, | 1747 | TCM_VHOST_DEFAULT_TAGS, |
1743 | sizeof(struct tcm_vhost_cmd)); | 1748 | sizeof(struct tcm_vhost_cmd), |
1749 | TARGET_PROT_NORMAL); | ||
1744 | if (IS_ERR(tv_nexus->tvn_se_sess)) { | 1750 | if (IS_ERR(tv_nexus->tvn_se_sess)) { |
1745 | mutex_unlock(&tpg->tv_tpg_mutex); | 1751 | mutex_unlock(&tpg->tv_tpg_mutex); |
1746 | kfree(tv_nexus); | 1752 | kfree(tv_nexus); |
@@ -2131,6 +2137,7 @@ static struct target_core_fabric_ops tcm_vhost_ops = { | |||
2131 | .queue_data_in = tcm_vhost_queue_data_in, | 2137 | .queue_data_in = tcm_vhost_queue_data_in, |
2132 | .queue_status = tcm_vhost_queue_status, | 2138 | .queue_status = tcm_vhost_queue_status, |
2133 | .queue_tm_rsp = tcm_vhost_queue_tm_rsp, | 2139 | .queue_tm_rsp = tcm_vhost_queue_tm_rsp, |
2140 | .aborted_task = tcm_vhost_aborted_task, | ||
2134 | /* | 2141 | /* |
2135 | * Setup callers for generic logic in target_core_fabric_configfs.c | 2142 | * Setup callers for generic logic in target_core_fabric_configfs.c |
2136 | */ | 2143 | */ |