Skip to content

Commit

Permalink
Merge pull request eBay#62 from raakella1/disable_uring_flag
Browse files Browse the repository at this point in the history
add a flag to disable io uring
  • Loading branch information
raakella1 authored Dec 7, 2023
2 parents b3e6e7e + ee48b78 commit eaa49d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class IOMgrConan(ConanFile):
name = "iomgr"
version = "10.0.5"
version = "10.0.6"
homepage = "https://github.com/eBay/IOManager"
description = "Asynchronous event manager"
topics = ("ebay", "nublox", "aio")
Expand Down
3 changes: 2 additions & 1 deletion src/lib/iomgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ void IOManager::start(const iomgr_params& params, const thread_state_notifier_t&
// Do Poller specific pre interface initialization
m_impl->pre_interface_init();
bool new_interface_supported = false;
m_is_uring_capable = check_uring_capability(new_interface_supported);
m_is_uring_capable =
!(IM_DYNAMIC_CONFIG(drive.disable_io_uring)) && check_uring_capability(new_interface_supported);
LOGINFOMOD(iomgr, "System has uring_capability={}", m_is_uring_capable);

// Create all in-built interfaces here
Expand Down
2 changes: 2 additions & 0 deletions src/lib/iomgr_config.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ table DriveInterface {
// TODO: this value should be set by consumer of iomgr, which should be (max_io_size / physical_page_sz) in worst case

max_resubmit_cnt: uint32 = 3 (hotswap); // max resubmit cnt of io in case of error

disable_io_uring: bool = false; // flag to not use io uring even if the env supports it
}

table PoolEntry {
Expand Down

0 comments on commit eaa49d9

Please sign in to comment.