mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
io_uring: don't check for io_uring_fops for fixed files
We don't allow them at registration time, so limit the check for needing inflight tracking in io_file_get() to the non-fixed path. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
c9dca27dc7
commit
d44f554e10
1 changed files with 4 additions and 2 deletions
|
@ -6212,10 +6212,12 @@ static struct file *io_file_get(struct io_submit_state *state,
|
||||||
} else {
|
} else {
|
||||||
trace_io_uring_file_get(ctx, fd);
|
trace_io_uring_file_get(ctx, fd);
|
||||||
file = __io_file_get(state, fd);
|
file = __io_file_get(state, fd);
|
||||||
|
|
||||||
|
/* we don't allow fixed io_uring files */
|
||||||
|
if (file && unlikely(file->f_op == &io_uring_fops))
|
||||||
|
io_req_track_inflight(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file && unlikely(file->f_op == &io_uring_fops))
|
|
||||||
io_req_track_inflight(req);
|
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue