numam-spdk/lib/bdev/passthru
Wael Halbawi 5abf2ecfcd Do not recreate passthru vbdev unnecessarily.
The passthru module associates a vbdev and the underlying bdev.
This association lives throughout the lifetime of the module and because
of this, passthru vbdevs are recreated when they shouldn't be.

This patch ensures that the association between a vbdev and a bdev is
broken when the vbdev is removed, so that if the underlying bdev is ever
recreated (after being deleted), the vbdev does not reappear.

Note that this change does not affect hot-remove operations.

Change-Id: I5cb4cf7efcb5e5eeaeef79849e0aaefec4684a4f
Signed-off-by: Wael Halbawi <waelhalbawi@gmail.com>
Reviewed-on: https://review.gerrithub.io/422474
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2018-08-17 19:21:26 +00:00
..
Makefile vbdev/passthru: add the construct_passthru_bdev RPC method 2018-04-20 14:58:13 -04:00
vbdev_passthru_rpc.c bdev: add delete_passthru_bdev call 2018-07-02 22:53:18 +00:00
vbdev_passthru.c Do not recreate passthru vbdev unnecessarily. 2018-08-17 19:21:26 +00:00
vbdev_passthru.h bdev: add delete_passthru_bdev call 2018-07-02 22:53:18 +00:00