bdev/passthru: clarify hot remove callback name

The hot remove callback is registered when we open the bdev in the
examine callback, but it's not used just during examine; change the name
of the callback to more accurately reflect what it is for.

Change-Id: Ie3e425e2e512f212d0dea40be12186c00e7a1091
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/410943
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Daniel Verkamp 2018-05-11 11:34:28 -07:00
parent 582d8f86a2
commit 2ecf7fdbf4

View File

@ -446,7 +446,7 @@ static const struct spdk_bdev_fn_table vbdev_passthru_fn_table = {
/* Called when the underlying base bdev goes away. */
static void
vbdev_passthru_examine_hotremove_cb(void *ctx)
vbdev_passthru_base_bdev_hotremove_cb(void *ctx)
{
struct vbdev_passthru *pt_node, *tmp;
struct spdk_bdev *bdev_find = ctx;
@ -512,7 +512,7 @@ vbdev_passthru_register(struct spdk_bdev *bdev)
sizeof(struct pt_io_channel));
SPDK_NOTICELOG("io_device created at: 0x%p\n", pt_node);
rc = spdk_bdev_open(bdev, true, vbdev_passthru_examine_hotremove_cb,
rc = spdk_bdev_open(bdev, true, vbdev_passthru_base_bdev_hotremove_cb,
bdev, &pt_node->base_desc);
if (rc) {
SPDK_ERRLOG("could not open bdev %s\n", spdk_bdev_get_name(bdev));