]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae4e155c7a2698d680003816805722b9508bea0c
tree9be90dabddde38ef7d06c0c640280f1a314a423a
parentcca348f1fc87fe9424691e7a00a61719b068228d
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