]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
blk/spdk: remove nvme retry count option from NVMEDevice
authorRoman Penyaev <rpenyaev@suse.de>
Fri, 21 Aug 2020 13:37:53 +0000 (15:37 +0200)
committerKefu Chai <kchai@redhat.com>
Thu, 27 Aug 2020 12:08:03 +0000 (20:08 +0800)
Since 62bb65289dd0 ("nvme: change retry count can be configured via bdev nvme driver")
this global variable is removed and there is no easy access to bdev_nvme
options, so just remove this config which is hardly used.

Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
src/blk/spdk/NVMEDevice.cc
src/common/legacy_config_opts.h
src/common/options.cc

index be417bbdc353b417d260d33cc06547c0b223f69c..82b294e4191941c01b0cb2083dd9439420351242 100644 (file)
@@ -588,10 +588,6 @@ int NVMEManager::try_get(const spdk_nvme_transport_id& trid, SharedDriverData **
         spdk_env_init(&opts);
         spdk_unaffinitize_thread();
 
-        spdk_nvme_retry_count = g_ceph_context->_conf->bdev_nvme_retry_count;
-        if (spdk_nvme_retry_count < 0)
-          spdk_nvme_retry_count = SPDK_NVME_DEFAULT_RETRY_COUNT;
-
         std::unique_lock l(probe_queue_lock);
         while (!stopping) {
           if (!probe_queue.empty()) {
index e4001eb75ebd1e392b51fc2272cc829e021fd2f1..a73031f80179480efaf2d67918190b208d0f322d 100644 (file)
@@ -895,7 +895,6 @@ OPTION(bdev_debug_aio_log_age, OPT_DOUBLE)
 // to the uio_pci_generic driver. The purpose is to prevent the case where
 // NVMe driver is loaded while osd is running.
 OPTION(bdev_nvme_unbind_from_kernel, OPT_BOOL)
-OPTION(bdev_nvme_retry_count, OPT_INT) // -1 means by default which is 4
 OPTION(bdev_enable_discard, OPT_BOOL)
 OPTION(bdev_async_discard, OPT_BOOL)
 
index 8113f30b2d0826eb37073510137b6b437b3202e7..2f19a5098e9cb3b6028b7e4866d58a812af87a35 100644 (file)
@@ -3981,10 +3981,6 @@ std::vector<Option> get_global_options() {
     .set_default(false)
     .set_description(""),
 
-    Option("bdev_nvme_retry_count", Option::TYPE_INT, Option::LEVEL_ADVANCED)
-    .set_default(-1)
-    .set_description(""),
-
     Option("bdev_enable_discard", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
     .set_default(false)
     .set_description(""),