search for: io_issue_def

Displaying 1 result from an estimated 1 matches for "io_issue_def".

Did you mean: io_issue_defs
2023 Feb 28
1
[PATCH] io_uring: fix fget leak when fs don't support nowait buffered read
...uring/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 1df68da89f99..7ad3b8af2a4b 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1777,7 +1777,7 @@ int io_req_prep_async(struct io_kiocb *req) const struct io_issue_def *def = &io_issue_defs[req->opcode]; /* assign early for deferred execution for non-fixed file */ - if (def->needs_file && !(req->flags & REQ_F_FIXED_FILE)) + if (def->needs_file && !(req->flags & REQ_F_FIXED_FILE) && !req->file) req->f...