io_uring: put flag checking for needing req cleanup in one spot
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Apr 2021 23:44:34 +0000 (17:44 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Apr 2021 15:45:47 +0000 (09:45 -0600)
commit4e3d9ff905cd3e6fc80a1f54b89c3aca67bc72be
tree90e614cdcade3f4439e9e34a71821c954178deba
parentea6a693d862d4f0edd748a1fa3fc6faf2c39afb2
io_uring: put flag checking for needing req cleanup in one spot

We have this in two spots right now, which is a bit fragile. In
preparation for moving REQ_F_POLLED cleanup into the same spot, move
the check into a separate helper so we only have it once.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c