diff options
| author | 2022-03-17 02:03:42 +0000 | |
|---|---|---|
| committer | 2022-03-16 20:26:32 -0600 | |
| commit | 9aa8dfde4869ccdec0a7290b686dbc10e079e163 (patch) | |
| tree | 4c3b1da830f66232ee6158524794be2090be531a /include/linux/debugobjects.h | |
| parent | io_uring: thin down io_commit_cqring() (diff) | |
| download | linux-dev-9aa8dfde4869ccdec0a7290b686dbc10e079e163.tar.xz linux-dev-9aa8dfde4869ccdec0a7290b686dbc10e079e163.zip | |
io_uring: fold evfd signalling under a slower path
Add ->has_evfd flag, which is true IFF there is an eventfd attached, and
use it to hide io_eventfd_signal() into __io_commit_cqring_flush() and
combine fast checks in a single if. Also, gcc 11.2 wasn't inlining
io_cqring_ev_posted() without this change, so helps with that as well.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f6168471997decded475a063f92915787975a30b.1647481208.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
