numam-spdk/module/bdev
GangCao e41d1a9411 vbdev: 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: I4f48e829a70a83bd71d05dbb13f88819201d9c15
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/969
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2020-02-21 09:40:32 +00:00
..
aio bdev/aio: delete unnecessary code 2019-10-16 15:55:46 +00:00
compress module/compress: use the base bdev channel when queueing IO 2020-02-13 09:52:22 +00:00
crypto module/crypto: fix use of wrong ch param in queueing IO 2020-02-18 08:05:42 +00:00
delay module/delay: use the correct ch when queueing IO 2020-02-13 09:52:35 +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 bdev/nvme: handle namespace resize event 2020-02-21 09:38:42 +00:00
ocf lib/bdev/ocf: remove unused code related to polling utils 2019-10-22 17:22:41 +00:00
passthru vbdev: close the base bdev on its opened thread 2020-02-21 09:40:32 +00:00
pmem rpc: Rename delete_pmem_pool to bdev_pmem_delete_pool 2019-09-05 07:04:17 +00:00
raid module/raid: don't support flush or unmap if there is no raid module handler 2020-02-20 14:40:19 +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 bdev/zone: Zone append handling added to vbdev 2020-01-21 08:43:31 +00:00
Makefile bdev/ftl: Remove NVMe dependencies 2020-01-15 12:24:44 +00:00