Spdk/module/bdev/nvme
GangCao b3be320de4 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: Id1299bb0d86db57bce48b9787d7f248d29a6f345
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/974
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-02-25 10:46:40 +00:00
..
bdev_nvme_cuse_rpc.c lib/nvme: remove device name parameter from nvme cuse 2019-12-09 17:40:35 +00:00
bdev_nvme_rpc.c vbdev: close the base bdev on its opened thread 2020-02-25 10:46:40 +00:00
bdev_nvme.c bdev/nvme: handle namespace resize event 2020-02-21 09:38:42 +00:00
bdev_nvme.h bdev/nvme: Add 'delay_cmd_submit' to nvme bdev options 2019-12-10 17:32:10 +00:00
bdev_ocssd_rpc.c bdev/ocssd: fixed leaking range buffer 2019-12-23 08:43:34 +00:00
bdev_ocssd.c bdev/ocssd: check namespace population 2020-02-20 14:43:44 +00:00
bdev_ocssd.h bdev/ocssd: media management events 2019-12-20 10:02:15 +00:00
common.c bdev/ocssd: media management events 2019-12-20 10:02:15 +00:00
common.h bdev/nvme: ftl_managed flag is no longer needed 2020-01-15 12:24:44 +00:00
Makefile bdev/ftl: Remove NVMe dependencies 2020-01-15 12:24:44 +00:00
nvme_rpc.c nvme/rpc: fix memory leak when cmdbuf decode fails for bdev_nvme_send_cmd 2020-02-10 10:24:28 +00:00
vbdev_opal_rpc.c bdev/opal: Add rpc commands for multiuser 2019-10-24 17:09:57 +00:00
vbdev_opal.c module/opal: fix use of wrong ch when queueing IO 2020-02-13 09:52:46 +00:00
vbdev_opal.h bdev/opal: Add rpc commands for multiuser 2019-10-24 17:09:57 +00:00