diff --git a/include/spdk_internal/lvolstore.h b/include/spdk_internal/lvolstore.h index 5ef6f80b2..5ffc756a9 100644 --- a/include/spdk_internal/lvolstore.h +++ b/include/spdk_internal/lvolstore.h @@ -72,7 +72,6 @@ struct spdk_lvol_store { struct spdk_uuid uuid; int lvol_count; int lvols_opened; - bool destruct; TAILQ_HEAD(, spdk_lvol) lvols; TAILQ_HEAD(, spdk_lvol) pending_lvols; bool on_list; diff --git a/lib/lvol/lvol.c b/lib/lvol/lvol.c index f21995fd6..fe31218e0 100644 --- a/lib/lvol/lvol.c +++ b/lib/lvol/lvol.c @@ -607,7 +607,6 @@ spdk_lvs_init(struct spdk_bs_dev *bs_dev, struct spdk_lvs_opts *o, lvs_req->cb_arg = cb_arg; lvs_req->lvol_store = lvs; lvs->bs_dev = bs_dev; - lvs->destruct = false; snprintf(opts.bstype.bstype, sizeof(opts.bstype.bstype), "LVOLSTORE"); diff --git a/module/bdev/lvol/vbdev_lvol.c b/module/bdev/lvol/vbdev_lvol.c index d8b5cab9b..4bfe79f3a 100644 --- a/module/bdev/lvol/vbdev_lvol.c +++ b/module/bdev/lvol/vbdev_lvol.c @@ -430,7 +430,6 @@ _vbdev_lvs_remove(struct spdk_lvol_store *lvs, spdk_lvs_op_complete cb_fn, void spdk_lvs_unload(lvs, _vbdev_lvs_remove_cb, lvs_bdev); } } else { - lvs->destruct = destroy; if (destroy) { _vbdev_lvs_remove_lvol_cb(lvs_bdev, 0); } else { @@ -1700,7 +1699,6 @@ vbdev_lvs_grow(struct spdk_lvol_store *lvs, if (_vbdev_lvs_are_lvols_closed(lvs)) { spdk_lvs_unload(lvs, _vbdev_lvs_grow_unload_cb, req); } else { - lvs->destruct = false; TAILQ_FOREACH_SAFE(lvol, &lvs->lvols, link, tmp) { req->lvol_cnt++; spdk_bdev_unregister(lvol->bdev, _vbdev_lvs_grow_remove_bdev_unregistered_cb, req);