Displaying 1 result from an estimated 1 matches for "io_file_get_norm".
Did you mean:
  io_file_get_normal
  
2023 Feb 28
1
[PATCH] io_uring: fix fget leak when fs don't support nowait buffered read
...= &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->file = io_file_get_normal(req, req->cqe.fd);
 	if (!cdef->prep_async)
 		return 0;
-- 
2.24.4