io_uring: Always REQ_F_FREE_SQE for allocated sqe
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Nov 2019 20:32:47 +0000 (23:32 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:06 +0000 (19:56 -0700)
commitbbad27b2f622fa26d107f8a72c0cd5cc102dc56e
tree7d81e19de9cee732ea9740dd47e0bd001498cb4f
parent5d960724b0cb0d12469d1c62912e4a8c09c9fd92
io_uring: Always REQ_F_FREE_SQE for allocated sqe

Always mark requests with allocated sqe and deallocate it in
__io_free_req(). It's easier to follow and doesn't add edge cases.

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