bdev/nvme: ftl_managed flag is no longer needed

bdev_ftl is virtual bdev now and is not associated
with nvme_bdev anymore so ftl_managed flag could be
removed.

Change-Id: I720e05aed9c36a9d36079276fbd27fe9ad70c0c0
Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478614
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
This commit is contained in:
Wojciech Malikowski 2019-12-20 08:25:52 -05:00 committed by Tomasz Zawadzki
parent 79fc6ed2f8
commit 8ffec69bff
2 changed files with 0 additions and 11 deletions

View File

@ -2423,10 +2423,6 @@ bdev_nvme_config_json(struct spdk_json_write_ctx *w)
pthread_mutex_lock(&g_bdev_nvme_mutex);
TAILQ_FOREACH(nvme_bdev_ctrlr, &g_nvme_bdev_ctrlrs, tailq) {
if (nvme_bdev_ctrlr->ftl_managed) {
continue;
}
trid = &nvme_bdev_ctrlr->trid;
spdk_json_write_object_begin(w);

View File

@ -96,13 +96,6 @@ struct nvme_bdev_ctrlr {
struct spdk_poller *adminq_timer_poller;
struct ocssd_bdev_ctrlr *ocssd_ctrlr;
/**
* Temporary workaround to distinguish between controllers managed by
* bdev_ocssd and those used by bdev_ftl. Once bdev_ftl becomes a
* virtual bdev and starts using bdevs instead of controllers, this flag
* can be removed.
*/
bool ftl_managed;
/** linked list pointer for device list */
TAILQ_ENTRY(nvme_bdev_ctrlr) tailq;