Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/rw: remove dead file == NULL check

Any read/write opcode has needs_file == true, which means that we
would've failed the request long before reaching the issue stage if we
didn't successfully assign a file. This check has been dead forever,
and is really a leftover from generic code.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

+1 -1
+1 -1
io_uring/rw.c
··· 721 721 struct file *file = req->file; 722 722 int ret; 723 723 724 - if (unlikely(!file || !(file->f_mode & mode))) 724 + if (unlikely(!(file->f_mode & mode))) 725 725 return -EBADF; 726 726 727 727 if (!(req->flags & REQ_F_FIXED_FILE))