]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: treat bdev_debug_aio_suicide_timeout==0 as no suicide
authorIgor Fedotov <ifedotov@suse.com>
Wed, 27 Feb 2019 14:15:47 +0000 (17:15 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Wed, 27 Feb 2019 15:56:55 +0000 (18:56 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/KernelDevice.cc

index 4f2aaa3373fe4dc7ee8a838446a8c6a52b6d2752..56a5de838e577e7a6ead0f72d14f33f0fff7cf96 100644 (file)
@@ -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) {