]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: fold complete_event_socket() into notify_callbacks_complete()
authorIlya Dryomov <idryomov@gmail.com>
Mon, 15 Jul 2024 09:28:12 +0000 (11:28 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Jul 2024 09:36:26 +0000 (11:36 +0200)
commited082dbd127152ddd7b41c1972c21b87a4a2818c
treedf1418d5593e867c70d051f4056c19f024935b5a
parentd5265727396fc64dd11ab4143ed86ac38260aff9
librbd: fold complete_event_socket() into notify_callbacks_complete()

Since commit 50694f790245 ("librbd: fix race condition with AIO
completion callbacks"), the former is always called before the latter.
Move event socket notification code into notify_callbacks_complete()
and rename it to mark_complete_and_notify().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/io/AioCompletion.cc
src/librbd/io/AioCompletion.h