Skip to content

Commit

Permalink
fix: patching the path of Async block devices
Browse files Browse the repository at this point in the history
The asynchronous engine maintains an event file descriptor which passes
to the IO uring interface when creating a new ring. IO uring uses this
EventFd to notify us about completion of IO requests.

When we PATCH an async block device, we create a new asynchronous
engine, including a new EventFd. However, we still monitor the old
EventFd. This breaks the use of async drives post PATCH requests,
because we never get notified about the results of requests we submit to
the IO uring engine.

This commit changes the implementation along the PATCH code path, to
reuse the previous EventFd for the asynchronous engine.

Signed-off-by: Babis Chalios <bchalios@amazon.es>
  • Loading branch information
bchalios committed Dec 1, 2023
1 parent 5ef8a65 commit 2b021ce
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 151 deletions.
Loading

0 comments on commit 2b021ce

Please sign in to comment.