Skip to content

Commit

Permalink
MDEV-26827 fixup: Fix os_aio_wait_until_no_pending_writes()
Browse files Browse the repository at this point in the history
io_callback(): Process the request before releasing the write slot.
Before commit a091d6a
when we had a duplicated counter for writes, either ordering was fine.
Now, correctness depends on os_aio_wait_until_no_pending_writes().
  • Loading branch information
dr-m committed Apr 20, 2023
1 parent c21bc17 commit 7e31a8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage/innobase/os/os0file.cc
Expand Up @@ -3457,9 +3457,8 @@ static void io_callback(tpool::aiocb *cb)
else
{
ut_ad(write_slots->contains(cb));
const IORequest req{request};
fil_aio_callback(request);
write_slots->release(cb);
fil_aio_callback(req);
}
}

Expand Down

0 comments on commit 7e31a8e

Please sign in to comment.