]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/rw: don't directly use ki_complete
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 19 Feb 2025 01:33:38 +0000 (01:33 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Feb 2025 20:42:22 +0000 (13:42 -0700)
commit4e43133c6f2319d3e205ea986c507b25d9b41e64
treea0051698db88045ce8e5b7ac2ea06b671f465283
parent67b0025d19f99fb9fbb8b62e6975553c183f3a16
io_uring/rw: don't directly use ki_complete

We want to avoid checking ->ki_complete directly in the io_uring
completion path. Fortunately we have only two callback the selection
of which depend on the ring constant flags, i.e. IOPOLL, so use that
to infer the function.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4eb4bdab8cbcf5bc87083f7047edc81e920ab83c.1739919038.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c