Skip to content

Commit ec858af

Browse files
committed
io_uring: don't check req->file in io_fsync_prep()
This is a leftover from the really old days where we weren't able to track and error early if we need a file and it wasn't assigned. Kill the check. Cc: stable@vger.kernel.org # v5.15+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3123109 commit ec858af

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

fs/io_uring.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4513,9 +4513,6 @@ static int io_fsync_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
45134513
{
45144514
struct io_ring_ctx *ctx = req->ctx;
45154515

4516-
if (!req->file)
4517-
return -EBADF;
4518-
45194516
if (unlikely(ctx->flags & IORING_SETUP_IOPOLL))
45204517
return -EINVAL;
45214518
if (unlikely(sqe->addr || sqe->ioprio || sqe->buf_index ||

0 commit comments

Comments
 (0)