Skip to content

Commit acf7f15

Browse files
committed
bli/aio: replace inappropriate aio_read() with aio_write for POSIXAIO
Signed-off-by: Igor Fedotov <[email protected]>
1 parent 8e32359 commit acf7f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blk/aio/aio.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int aio_queue_t::submit_batch(aio_iter begin, aio_iter end,
5353
cur->aio.aiocb.aio_sigevent.sigev_notify = SIGEV_KEVENT;
5454
cur->aio.aiocb.aio_sigevent.sigev_notify_kqueue = ctx;
5555
cur->aio.aiocb.aio_sigevent.sigev_value.sival_ptr = &(*cur);
56-
r = aio_read(&cur->aio.aiocb);
56+
r = aio_write(&cur->aio.aiocb);
5757
} else {
5858
struct sigevent sev;
5959
sev.sigev_notify = SIGEV_KEVENT;

0 commit comments

Comments
 (0)