From ed82a8f4115e7344a22cbaa1bb283004a75eced3 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Wed, 27 Feb 2019 17:15:47 +0300 Subject: [PATCH] os/bluestore: treat bdev_debug_aio_suicide_timeout==0 as no suicide Signed-off-by: Igor Fedotov --- src/os/bluestore/KernelDevice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/KernelDevice.cc b/src/os/bluestore/KernelDevice.cc index 4f2aaa3373f..56a5de838e5 100644 --- a/src/os/bluestore/KernelDevice.cc +++ b/src/os/bluestore/KernelDevice.cc @@ -546,7 +546,7 @@ void KernelDevice::_aio_thread() if (debug_oldest) { if (debug_stall_since == utime_t()) { debug_stall_since = now; - } else { + } else if (cct->_conf->bdev_debug_aio_suicide_timeout) { utime_t cutoff = now; cutoff -= cct->_conf->bdev_debug_aio_suicide_timeout; if (debug_stall_since < cutoff) { -- 2.39.5