]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
NVMEDevice: add retry support
authorHaomai Wang <haomai@xsky.com>
Wed, 6 Jan 2016 06:47:45 +0000 (14:47 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 1 Feb 2016 14:00:45 +0000 (22:00 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/os/bluestore/NVMEDevice.cc

index 86fd88105760587d1bed34f239a1b5ff0e9d7afa..0c2d2359cfac321b9e62e6be5c2733ad668fc5ae 100644 (file)
@@ -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);