Spdk/test/unit/lib/bdev
Ben Walker 2e1dbc4587 bdev: Fix race condition when testing whether QoS is enabled
When testing whether QoS is enabled, the code previously
checked mutable values in the bdev itself. Instead, it needs
to check the flag in the channel.

Right now, QoS can only be configured statically when the
bdev is created. This means that no channels will exist
prior to QoS being turned on, which simplifies setting
the per-channel flag (only need to set it when a channel
is created).

Change-Id: I59e56c64c18c262cc2a7f71a6dde8329edb35db7
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/407354
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: GangCao <gang.cao@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-04-17 21:47:12 -04:00
..
bdev.c test/unit/bdev: mock out thread for tests. 2018-04-04 17:05:22 -04:00
gpt test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
mt bdev: Fix race condition when testing whether QoS is enabled 2018-04-17 21:47:12 -04:00
part.c test/unit/part: mock out thread for tests. 2018-04-04 17:05:22 -04:00
pmem bdev/pmem: add conf support to test in blockdev.sh 2018-04-03 14:14:29 -04:00
scsi_nvme.c test: use spdk.unittest.mk in bdev unit tests 2018-02-14 11:07:05 -05:00
vbdev_lvol.c lvol: Creating 2 lvols simultaneously with same name 2018-04-17 14:03:22 -04:00
Makefile bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00