+7
−7
Loading
Instead of accessing the qos_channel pointer on the bdev, always have the QoS parameter on the allocated memory of qos_channel structure. The bdev->qos_channel is set to NULL in the destroy operation, and the destroy is through the async message which could be executed later after the poller function within which the bdev->qos_channel is accessed (thus a NULL pointer dereferenced). In this case, assign the memory address of the allcoated qos_channel to the function as the parameter to solve this issue. Change-Id: I2fdb53cb0a6a29fb41ab28362f8e068d21ee5d12 Signed-off-by:GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/405438 Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>