io_uring/eventfd: move trigger check into a helper
authorJens Axboe <axboe@kernel.dk>
Sat, 21 Sep 2024 07:59:50 +0000 (01:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Oct 2024 15:04:10 +0000 (09:04 -0600)
commit1db70694f45173ebae0fb7de0ad84c7b02bfdc7a
treebcc98e2124523737c05462e8b8f5b6ee16bfeaa1
parent9b0c776e740939a1f03160d27a8dfa13083f385f
io_uring/eventfd: move trigger check into a helper

It's a bit hard to read what guards the triggering, move it into a
helper and add a comment explaining it too. This additionally moves
the ev_fd == NULL check in there as well.

Link: https://lore.kernel.org/r/20240921080307.185186-5-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/eventfd.c