Spdk/test/unit/lib
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 bdev: Fix race condition when testing whether QoS is enabled 2018-04-17 21:47:12 -04:00
blob test: Remove all uses of strncpy 2018-04-13 16:15:52 -04:00
blobfs test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
event subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
ioat test: use spdk.unittest.mk for ioat unit tests 2018-02-14 10:40:40 -05:00
iscsi test: Remove all uses of strncpy 2018-04-13 16:15:52 -04:00
json ut/json: add missing UT for int64/uint64 write 2018-02-20 13:05:36 -05:00
jsonrpc jsonrpc: allow send_buf to grow as needed 2018-02-15 11:03:54 -05:00
log test: use spdk.unittest.mk for event and log unit tests 2018-02-14 11:07:05 -05:00
lvol lvol: Creating 2 lvols simultaneously with same name 2018-04-17 14:03:22 -04:00
net net: create NET_MODULE for compiling different net_implementations 2018-03-15 17:54:29 -04:00
nvme nvme: use AER configuation structure when starting controller 2018-04-10 15:43:38 -04:00
nvmf Revert "subsystem.c: make subsystem_remove_ns asynchronous" 2018-04-17 20:17:27 -04:00
scsi scsi: validate dev name length 2018-04-10 15:43:03 -04:00
util test: move ut_multithread.c to common/lib 2018-03-29 00:31:24 -04:00
vhost vhost: add JSON config dump 2018-04-16 19:27:33 -04:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile test: add spdk_sock unit tests 2018-02-12 12:30:39 -05:00