scsi: don't leak bdev_io on mgmt task complete

Change-Id: I90623a81e31176f08ac409d26a0c23f0af2231db
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/364773
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Pawel Wodkowski 2017-06-09 17:33:51 +02:00 committed by Ben Walker
parent 89ad3f3d6b
commit 4af745126b

View File

@ -1261,6 +1261,8 @@ spdk_bdev_scsi_task_complete_mgmt(struct spdk_bdev_io *bdev_io, bool success,
{
struct spdk_scsi_task *task = cb_arg;
task->blockdev_io = bdev_io;
if (success) {
task->response = SPDK_SCSI_TASK_MGMT_RESP_SUCCESS;
}