diff --git a/fdbrpc/Net2FileSystem.cpp b/fdbrpc/Net2FileSystem.cpp index 0331d6413a..2377ddfd7e 100644 --- a/fdbrpc/Net2FileSystem.cpp +++ b/fdbrpc/Net2FileSystem.cpp @@ -93,10 +93,8 @@ Net2FileSystem::Net2FileSystem(double ioTimeout, std::string fileSystemPath) { Net2AsyncFile::init(); #ifdef __linux__ - if (FLOW_KNOBS->DISABLE_POSIX_KERNEL_AIO) - return; - - AsyncFileKAIO::init( Reference(N2::ASIOReactor::getEventFD()), ioTimeout ); + if (!FLOW_KNOBS->DISABLE_POSIX_KERNEL_AIO) + AsyncFileKAIO::init( Reference(N2::ASIOReactor::getEventFD()), ioTimeout ); if (fileSystemPath.empty()) { checkFileSystem = false;