Spdk/test/unit/lib/bdev
Dariusz Stojaczyk bfb73837de ut/bdev_mt: add test case for ENOMEM handling with multiple io targets
Bdev layer has been recently refactored to share
internal module channels for *all* bdevs of the
same bdev module. This makes us return ENOMEM for I/O
of one bdev if another bdev of the same module (nvme, split, etc)
is entirely saturated. This is not the behavior we want,
as these bdevs may not have anything in common.

This `issue` has been fixed just now, but to prevent
it coming back again lets add a unit test for it.

This test case creates two bdevs using two separate
io_devices and checks if ENOMEM handling is somehow common
for these two. It must not be.

Change-Id: Ic32ef4b4347b8856d4b9f91107e6f188ad67978e
Suggested-by: Ben Walker <benjamin.walker@intel.com>
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/409997
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-05-09 18:19:06 +00: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 ut/bdev_mt: add test case for ENOMEM handling with multiple io targets 2018-05-09 18:19:06 +00: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: raport not supported io types on ro lvol 2018-04-20 15:22:53 -04:00
Makefile bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00