io_uring/poll: pull ownership handling into poll.h
authorJens Axboe <axboe@kernel.dk>
Fri, 31 Jan 2025 22:51:33 +0000 (15:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Feb 2025 18:22:04 +0000 (11:22 -0700)
commitabe8b919f0bbcd1900af70a1852bc46d5d8bc612
tree621f70683a2ce63ea61875b5340db46a8cbe1b21
parenta7a68a9ccd43e8c1efc4205b47c84ab23b0ef07c
io_uring/poll: pull ownership handling into poll.h

In preparation for using it from somewhere else. Rather than try and
duplicate the functionality, just make it generically available to
io_uring opcodes.

Note: would have to be used carefully, cannot be used by opcodes that
can trigger poll logic.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c
io_uring/poll.h