vhost: Fix reset handling
Resets were not correctly aborting all I/O. Change-Id: I03fd5f7094b3aa53f070eb731c30e5f9bfbfea16 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/363626 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
87d242f920
commit
ce8de311a4
@ -52,6 +52,10 @@ spdk_scsi_lun_complete_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *ta
|
||||
void
|
||||
spdk_scsi_lun_complete_mgmt_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task)
|
||||
{
|
||||
if (task->function == SPDK_SCSI_TASK_FUNC_LUN_RESET &&
|
||||
task->status == SPDK_SCSI_STATUS_GOOD) {
|
||||
spdk_scsi_lun_clear_all(task->lun);
|
||||
}
|
||||
spdk_event_call(task->cb_event);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user