Browse Source

Test: use submit_and_wait()

test-submit-and-wait
Vitaliy Filippov 10 months ago
parent
commit
9c33de5e57
3 changed files with 1 additions and 8 deletions
  1. +0
    -5
      blockstore_impl.cpp
  2. +0
    -1
      osd.cpp
  3. +1
    -2
      ringloop.h

+ 0
- 5
blockstore_impl.cpp View File

@@ -196,11 +196,6 @@ void blockstore_impl_t::loop()
{
flusher->loop();
}
int ret = ringloop->submit();
if (ret < 0)
{
throw std::runtime_error(std::string("io_uring_submit: ") + strerror(-ret));
}
if ((initial_ring_space - ringloop->space_left()) > 0)
{
live = true;


+ 0
- 1
osd.cpp View File

@@ -175,7 +175,6 @@ void osd_t::loop()
handle_peers();
read_requests();
send_replies();
ringloop->submit();
}

void osd_t::handle_epoll_events()


+ 1
- 2
ringloop.h View File

@@ -146,8 +146,7 @@ public:
}
inline int wait()
{
struct io_uring_cqe *cqe;
return io_uring_wait_cqe(&ring, &cqe);
return io_uring_submit_and_wait(&ring, 1);
}
inline unsigned space_left()
{


Loading…
Cancel
Save