]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
blk/aio: fix mismatched parenthesis in POSIX AIO submit path 69820/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 30 Jun 2026 03:50:20 +0000 (20:50 -0700)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 30 Jun 2026 04:07:56 +0000 (21:07 -0700)
The condition `if ((cur->n_aiocb == 1) {` has an unbalanced
parenthesis and fails to compile. This code is only built on the
HAVE_POSIXAIO (BSD) path, so the breakage is normally hidden.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/blk/aio/aio.cc

index 6ade779b4c1ce746a400a77d551092640749ecbc..eeb93fbc87a3d151da9c86a85bf78118d4b62ea9 100644 (file)
@@ -48,7 +48,7 @@ int aio_queue_t::submit_batch(aio_iter begin, aio_iter end,
     }
 #elif defined(HAVE_POSIXAIO)
     cur->priv = priv;
-    if ((cur->n_aiocb == 1) {
+    if (cur->n_aiocb == 1) {
       // TODO: consider batching multiple reads together with lio_listio
       cur->aio.aiocb.aio_sigevent.sigev_notify = SIGEV_KEVENT;
       cur->aio.aiocb.aio_sigevent.sigev_notify_kqueue = ctx;