]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: reuse io_req_complete_post()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 17 Aug 2021 19:28:09 +0000 (20:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:43 +0000 (13:10 -0600)
commit7600325bd69df12c2178a6beb6a0a19a35e5aeea
treea1f665b05f3245091ff62176896dd3a946a75974
parent087033202036e963de2381301435b9dc424efa88
io_uring: reuse io_req_complete_post()

We have io_req_complete_post() to post a CQE and put the request. It
takes care of all synchronisation and is more concise and efficent, so
replace all hancoded occurrences of
"lock; post CQE; unlock; + put_req()" with io_req_complete_post().

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