io_uring: remove F_NEED_CLEANUP check in *prep()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Sep 2020 19:57:35 +0000 (22:57 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:38:46 +0000 (20:38 -0600)
commit2d199895d231c0a1af3a49d1f0da777499f352c8
tree9be90dabddde38ef7d06c0c640280f1a314a423a
parent5b09e37e27a878eb50f0eb96fbce8419e932a7d5
io_uring: remove F_NEED_CLEANUP check in *prep()

REQ_F_NEED_CLEANUP is set only by io_*_prep() and they're guaranteed to
be called only once, so there is no one who may have set the flag
before. Kill REQ_F_NEED_CLEANUP check in these *prep() handlers.

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