Spdk/test/unit/lib/bdev
Darek Stojaczyk 283abcb9a2 bdev: temporarily allow bdev descriptors to be closed from any thread
Bdev descriptors could be closed only from the same thread
that opened them. This restriction was suddenly introduced
at one point without making sure all the SPDK code respects
it. Vhost can still close descriptors from any arbitrary
thread and fixing that would require some more effort.

With this patch we remove the thread-specific assert from
spdk_bdev_close() and hence allow vhost to work properly
in debug builds. Vhost can still have a possible data
race with bdev hotremove notification, but let's get rid
of the abort() from the usual code path first.

Change-Id: I6fac66a5ebc907b1c5418fff618f0b64cd9b69f4
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/451561
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-04-23 17:06:37 +00:00
..
bdev_raid.c bdev/raid: Add callback parameters to remove_base_devices() 2019-04-10 20:41:57 +00:00
bdev.c bdev: deprecate spdk_vbdev_register 2019-04-04 08:28:31 +00:00
compress.c bdev/compress: add missing mocks and re-enable UT build for comp 2019-04-22 15:44:38 +00:00
crypto.c crypto: switch to spdk_*malloc(). 2019-04-04 20:59:36 +00:00
gpt test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
mt bdev: temporarily allow bdev descriptors to be closed from any thread 2019-04-23 17:06:37 +00:00
part.c notify: add basic unit tests for notifications 2019-03-29 21:15:14 +00:00
pmem bdev: Not assert but pass completion status to spdk_bdev_io_get_buf_cb 2019-02-27 01:59:11 +00:00
scsi_nvme.c test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
vbdev_lvol.c bdev: deprecate spdk_vbdev_register 2019-04-04 08:28:31 +00:00
Makefile bdev/compress: add missing mocks and re-enable UT build for comp 2019-04-22 15:44:38 +00:00