io_uring: don't free request to slab
authorHao Xu <haoxu@linux.alibaba.com>
Wed, 25 Aug 2021 17:58:56 +0000 (01:58 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 25 Aug 2021 19:04:26 +0000 (13:04 -0600)
commit0c6e1d7fd5e7560fdc4bb3418c2c0f0d7a95bf76
tree14c23e2dfff98201b852fa023d6b9459b750120f
parentaaa4db12ef7bdc3e343580d1d3c0b2a8874fc1fb
io_uring: don't free request to slab

It's not necessary to free the request back to slab when we fail to
get sqe, just move it to state->free_list.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20210825175856.194299-1-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c