Spdk/module/bdev
GangCao c65d64a6b8 vbdev/raid: close the base bdev on its opened thread
With the JSON configure, the base device will be opened on the
same thread (RPC thread) to handle the JSON operation. Later the
virtual device upon the base device can be opened on another
thread. At the time of virtual device destruction, the base
device is also closed at the thread where opening the virtual
device, it is actually different than the original thread where
this base device is opened through the JSON configure.

Add a thread here to record the exact thread where the base
device is opened and then later route it back to handle the base
device close operation.

Change-Id: Ib95e8d190bd87158ae1ecc6698da95ccc4ba9579
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/992
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-02-26 09:26:49 +00:00
..
aio bdev/aio: delete unnecessary code 2019-10-16 15:55:46 +00:00
compress vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
crypto vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
delay vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
error RPC: rename RPC bdev_error series 2019-08-26 18:59:18 +00:00
ftl bdev/ftl: Do not register ftl bdev as io device 2020-02-20 09:51:28 +00:00
gpt module/gpt: use correct ch when queueing IO 2020-02-13 09:52:46 +00:00
iscsi module/bdev: fix a inconsistent order of parameters 2019-11-21 08:04:53 +00:00
lvol lvol: Use error log instead of info log on error 2019-09-09 08:40:58 +00:00
malloc module/malloc: rename 2 functions to match new accel names 2020-02-21 09:38:51 +00:00
null scripts/rpc: Rename rpc related to null bdev 2019-08-28 15:19:58 +00:00
nvme vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
ocf vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
passthru vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
pmem rpc: Rename delete_pmem_pool to bdev_pmem_delete_pool 2019-09-05 07:04:17 +00:00
raid vbdev/raid: close the base bdev on its opened thread 2020-02-26 09:26:49 +00:00
rbd RPC: rename rpc delete_rbd_bdev to bdev_rbd_delete 2019-09-13 22:39:15 +00:00
rpc bdev/rpc: Add current ticks to bdev_get_iostat RPC 2019-11-21 08:05:23 +00:00
split module/split: use correct ch when queueing IO 2020-02-13 09:52:46 +00:00
uring uring: Add a uring.h file. 2019-12-30 11:45:51 +00:00
virtio virtio: remove VHOST_USER_F_PROTOCOL_FEATURES from virtio.h 2020-01-10 08:45:45 +00:00
zone_block vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
Makefile bdev/ftl: Remove NVMe dependencies 2020-01-15 12:24:44 +00:00