From eb7b5ee0d05de21e424371b554e0f1ea14ec7156 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Thu, 18 Apr 2024 13:44:01 +0300 Subject: [PATCH] bli/aio: replace inappropriate aio_read() with aio_write for POSIXAIO Signed-off-by: Igor Fedotov (cherry picked from commit acf7f153afe4e427a82d427384cc080ab88cdc97) --- src/blk/aio/aio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blk/aio/aio.cc b/src/blk/aio/aio.cc index cb553b80bde20..1e6b102f3dc3b 100644 --- a/src/blk/aio/aio.cc +++ b/src/blk/aio/aio.cc @@ -53,7 +53,7 @@ int aio_queue_t::submit_batch(aio_iter begin, aio_iter end, cur->aio.aiocb.aio_sigevent.sigev_notify = SIGEV_KEVENT; cur->aio.aiocb.aio_sigevent.sigev_notify_kqueue = ctx; cur->aio.aiocb.aio_sigevent.sigev_value.sival_ptr = &(*cur); - r = aio_read(&cur->aio.aiocb); + r = aio_write(&cur->aio.aiocb); } else { struct sigevent sev; sev.sigev_notify = SIGEV_KEVENT; -- 2.39.5