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> |
||
---|---|---|
.. | ||
.gitignore | ||
bdev_ut.c | ||
Makefile |