Skip to content

Commit

Permalink
feat(nvmx): adminq poller on different core
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Savitskiy <dmitry.savitskiy@datacore.com>
  • Loading branch information
dsavitskiy committed Nov 10, 2022
1 parent 7df2869 commit 7c482f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions io-engine/src/bdev/nvmx/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use merge::Merge;
use nix::errno::Errno;

use spdk_rs::{
cpu_cores::Cores,
libspdk::{
spdk_nvme_async_event_completion,
spdk_nvme_cpl,
Expand Down Expand Up @@ -102,6 +103,7 @@ impl<'a> NvmeControllerInner<'a> {
nvme_bdev_running_config().nvme_adminq_poll_period_us,
))
.with_poll_fn(move |_| nvme_poll_adminq(cfg.as_ptr().cast()))
.with_core(Cores::last().id())
.build();

Self {
Expand Down
2 changes: 1 addition & 1 deletion spdk-rs
Submodule spdk-rs updated 3 files
+1 −0 src/lib.rs
+192 −31 src/poller.rs
+2 −3 src/thread.rs

0 comments on commit 7c482f4

Please sign in to comment.