io_uring: clarify io_req_task_cancel() locking
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 25 Aug 2021 19:51:39 +0000 (20:51 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Aug 2021 15:23:11 +0000 (09:23 -0600)
commitb18a1a4574d2d15f1b0c84658d4549ccbf241fee
treeca582efb2cfd61060de9cf4cc2155ecc2708fdde
parent9a10867ae54e02a0f204d2eebea5a446fb7a86f9
io_uring: clarify io_req_task_cancel() locking

It's too easy to forget and misjudge about synchronisation in
io_req_task_cancel(), add a comment clarifying it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/71099083835f983a1fd73d5a3da6391924da8300.1629920396.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c