io_uring: cancel only requests of current task
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 6 Nov 2020 13:00:23 +0000 (13:00 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Dec 2020 19:04:00 +0000 (12:04 -0700)
commitdf9923f96717d0aebb0a73adbcf6285fa79e38cb
treed11fdd48df051495601f17c3fc831b4d490f34bb
parent08d23634643c239ddae706758f54d3a8e0c24962
io_uring: cancel only requests of current task

io_uring_cancel_files() cancels all request that match files regardless
of task. There is no real need in that, cancel only requests of the
specified task. That also handles SQPOLL case as it already changes task
to it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c