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: GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/409125 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Liang Yan <liang.z.yan@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
882558f7e8
commit
2f94b4d4e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user