On 1/9/20 8:17 AM, Pavel Begunkov wrote: >> diff --git a/fs/io_uring.c b/fs/io_uring.c >> index 32aee149f652..b5dcf6c800ef 100644 >> --- a/fs/io_uring.c >> +++ b/fs/io_uring.c >> @@ -1218,6 +1218,8 @@ struct req_batch { >> >> static void io_free_req_many(struct io_ring_ctx *ctx, struct req_batch *rb) >> { >> + int fixed_refs = 0; >> + > > If all are fixed, then @rb->need_iter == false (see > io_req_multi_free()), and @fixed_refs will be left 0. How about to set > it to rb->to_free, and zero+count for rb->need_iter == true? Good catch, I'll make that change. -- Jens Axboe