io_uring: kill io_put_req_deferred()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Apr 2022 21:08:23 +0000 (22:08 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Apr 2022 22:21:02 +0000 (16:21 -0600)
commit2e47ba7a3a2ae3c07ea4b699918a655e4f753a31
tree797acbf5cc88c98d0182f7f2018a09eb4848fdc0
parentb03080f869e11b96ca080dac354c0bf6b361a30c
io_uring: kill io_put_req_deferred()

We have several spots where a call to io_fill_cqe_req() is immediately
followed by io_put_req_deferred(). Replace them with
__io_req_complete_post() and get rid of io_put_req_deferred() and
io_fill_cqe_req().

> size ./fs/io_uring.o
   text    data     bss     dec     hex filename
  86942   13734       8  100684   1894c ./fs/io_uring.o
> size ./fs/io_uring.o
   text    data     bss     dec     hex filename
  86438   13654       8  100100   18704 ./fs/io_uring.o

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/10672a538774ac8986bee6468d960527af59169d.1650056133.git.asml.silence@gmail.com
[axboe: fold in followup fix]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c