Spdk/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
..
aio bdev/aio: remove deprecated "fname" RPC parameter 2018-03-23 03:57:44 -04:00
error bdev: Wait for io device to unregister in bdev_part 2018-04-17 11:47:09 -04:00
gpt bdev: Wait for io device to unregister in bdev_part 2018-04-17 11:47:09 -04:00
iscsi bdev/iscsi: initialize g_iscsi_lun_head staticly and make iqn per bdev 2018-04-16 19:14:54 -04:00
lvol bdev/lvol: add dump config mock 2018-04-17 13:30:32 -04:00
malloc bdev/malloc: num_blocks parameter should be uint64_t 2018-04-06 18:22:22 -04:00
null bdev/null: fix RPC string memory leak 2018-04-06 18:22:22 -04:00
nvme bdev/nvme: Fix descriptor leak in apply firmware RPC 2018-04-10 12:58:34 -04:00
passthru bdev: update the name of Passthru section 2018-04-10 15:44:54 -04:00
pmem bdev/pmem: add conf support to test in blockdev.sh 2018-04-03 14:14:29 -04:00
rbd bdev/rbd: add missing block_size in RPC config dump 2018-04-05 14:57:43 -04:00
rpc subsystem,bdev: rework RPC JSON config dump 2018-03-27 02:57:28 -04:00
split bdev: Wait for io device to unregister in bdev_part 2018-04-17 11:47:09 -04:00
virtio bdev/virito: add JSON config dump and generic create RPC 2018-04-17 17:16:06 -04:00
bdev.c bdev: Fix race condition when testing whether QoS is enabled 2018-04-17 21:47:12 -04:00
Makefile bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00
part.c bdev: Wait for io device to unregister in bdev_part 2018-04-17 11:47:09 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: disable new GCC 7 warning in VTune code 2018-03-19 15:58:15 -04:00