Spdk/test/unit/lib/bdev/mt/bdev.c
Daniel Verkamp d4ef1338b0 bdev: make QoS channel management thread safe
We must hold bdev->mutex around all QoS channel manipulations, not just
channel_count; otherwise, there are race conditions.

Change-Id: I6183aef83f4d5789bded426a1832e3faaa688363
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/403367
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: GangCao <gang.cao@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-03-13 14:06:23 -04:00
..
.gitignore test/bdev: add simulated multi-thread unit tests 2017-09-22 15:38:44 -04:00
bdev_ut.c bdev: make QoS channel management thread safe 2018-03-13 14:06:23 -04:00
Makefile test: use spdk.unittest.mk in bdev unit tests 2018-02-14 11:07:05 -05:00