]> 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)
commit5b7ec82d887d798585afe7e13b0f504f3044d2ad
tree9be90dabddde38ef7d06c0c640280f1a314a423a
parentea8dda4705d309778060ba185c656390961eca16
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