Spdk/module/bdev/passthru
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
..
Makefile mk: move the bdev modules under module directory. 2019-08-22 16:29:49 +00:00
vbdev_passthru_rpc.c rpc: Rename passthru related rpcs. 2019-09-19 04:17:54 +00:00
vbdev_passthru.c vbdev: close the base bdev on its opened thread 2020-02-21 09:40:32 +00:00
vbdev_passthru.h rpc: Rename passthru related rpcs. 2019-09-19 04:17:54 +00:00