Spdk/test
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
..
app test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
bdev test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
blobfs blobfs/fuse: account for leading slash in filenames 2018-04-11 16:03:14 -04:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env test: move lib/env up one level 2018-03-29 00:31:24 -04:00
event test: move lib/event up one directory 2018-03-29 00:31:24 -04:00
ioat test: move lib/ioat up one directory 2018-03-27 00:46:52 -04:00
iscsi_tgt test/iscsi_tgt: merge the two steps of running fio_remote_nvme.sh 2018-04-17 14:27:25 -04:00
lvol test/lvol: Snapshot and clone test cases for lvol feature. 2018-04-12 19:29:00 -04:00
nvme test/nvme/aer: add changed namespace list log test 2018-04-11 16:05:09 -04:00
nvmf test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
pmem bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00
unit bdev: Fix race condition when testing whether QoS is enabled 2018-04-17 21:47:12 -04:00
vhost test/vhost: live migration test case 3 2018-04-17 17:10:29 -04:00
Makefile test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
spdk_cunit.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00