Commit 2f94b4d4 authored by GangCao's avatar GangCao Committed by Daniel Verkamp
Browse files

bdev/qos: free the QoS channel when disabling



The related QoS channel resource needs to be freed
after disabling the QoS through the RPC call.

Change-Id: If757b5febdb909367c9b940de6e6b5e9528c0103
Signed-off-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/409125


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarLiang Yan <liang.z.yan@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 882558f7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2906,6 +2906,8 @@ _spdk_bdev_disable_qos_done(void *cb_arg)
	qos->enabled = false;
	_spdk_bdev_abort_queued_io(&qos->queued, qos->ch);
	_spdk_bdev_channel_destroy(qos->ch);
	free(qos->ch);
	qos->ch = NULL;
	qos->thread = NULL;
	qos->max_ios_per_timeslice = 0;
	qos->io_submitted_this_timeslice = 0;