OSDN Git Service

io_uring: simplify io_async_task_func()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 30 Jun 2020 12:20:42 +0000 (15:20 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 15:32:04 +0000 (09:32 -0600)
commit0be0b0e33b0bfd08264b108512e44b3907fe987b
tree35088536ae39ccdd6a6340b401756124e25d0402
parentea1164e574e9af0a15ab730ead0861a4c7724142
io_uring: simplify io_async_task_func()

Greatly simplify io_async_task_func() removing duplicated functionality
of __io_req_task_submit(). This do one extra spin lock/unlock for
cancelled poll case, but that shouldn't happen often.

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