Skip to content

Commit

Permalink
bli/aio: replace inappropriate aio_read() with aio_write for POSIXAIO
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
  • Loading branch information
ifed01 committed Apr 18, 2024
1 parent 738cc58 commit 41b2fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blk/aio/aio.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 41b2fa9

Please sign in to comment.