From 8740256163ad2b95660c0369c1c6dc2ebba52e23 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Wed, 6 Jan 2016 14:47:45 +0800 Subject: [PATCH] NVMEDevice: add retry support Signed-off-by: Haomai Wang --- src/os/bluestore/NVMEDevice.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os/bluestore/NVMEDevice.cc b/src/os/bluestore/NVMEDevice.cc index 86fd881057605..0c2d2359cfac3 100644 --- a/src/os/bluestore/NVMEDevice.cc +++ b/src/os/bluestore/NVMEDevice.cc @@ -245,6 +245,10 @@ int SharedDriverData::try_get(const string &sn_tag, nvme_controller **c, string } pci_system_init(); + nvme_retry_count = g_conf->bdev_nvme_retry_count; + if (nvme_retry_count < 0) + nvme_retry_count = NVME_DEFAULT_RETRY_COUNT; + init = true; } return _scan_nvme_device(sn_tag, c, name); -- 2.39.5