Spdk/test/unit/lib/bdev/mt/bdev.c
Ben Walker a7a2e2721a test/bdev: Add a unit test to expose a race condition
There is a race condition with the following sequence:

spdk_bdev_open()
spdk_bdev_unregister() <-- starts deferred message
spdk_bdev_close()
deferred message runs, crashes

Change-Id: I81fbced0849949cfb2dae5a7cc6f60c9685a8885
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/424739
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2018-09-07 16:04:47 +00:00
..
.gitignore test/bdev: add simulated multi-thread unit tests 2017-09-22 15:38:44 -04:00
bdev_ut.c test/bdev: Add a unit test to expose a race condition 2018-09-07 16:04:47 +00:00
Makefile test: use spdk.unittest.mk in bdev unit tests 2018-02-14 11:07:05 -05:00