io_uring: add helper for parsing poll events
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 14 Apr 2021 12:38:36 +0000 (13:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Apr 2021 16:43:47 +0000 (10:43 -0600)
commit9096af3e9c8734a34703bd9fb5ab14292296f911
tree1b77b6d1a0a0fa9facdeb494c6e18dba97a969c0
parent9ba5fac8cf3b607652397f863dc229bbc8c3cbc1
io_uring: add helper for parsing poll events

Isolate poll mask SQE parsing and preparations into a new function,
which will be reused shortly.

Fixes: b69de288e913 ("io_uring: allow events and user_data update of running poll requests")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c