es mean it'll be pinned until the
-		 * IO completes, coming in unlocked means we're being called from
-		 * io-wq context and there may be further retries in async hybrid
-		 * mode. For the locked case, the caller must call commit when
-		 * the transfer completes (or if we get -EAGAIN and must poll of
-		 * retry).
-		 */
+	if (io_should_commit(req, issue_flags)) {
 		io_kbuf_commit(req, sel.buf_list, *len, 1);
 		sel.buf_list = NULL;
 	}
-- 
2.47.1[PATCH V2] io_uring: fix buffer auto-commit for multishot uring_cmdMing Lei <ming.lei@redhat.com> undefinedJens Axboe <axboe@kernel.dk>, io-uring@vger.kernel.org undefined undefined undefined…SƒÂx
