On 3/28/19 9:02 AM, Christoph Hellwig wrote: >> + iov_iter_bvec(i, direction, bvec, nr_segs, count); >> + i->type |= ITER_BVEC_FLAG_NO_REF; >> +} > > What about simply providing a iov_iter_bvec_noref in core code and > also using that in io_uring? > > Otherwise this looks fine to me. I'd be fine with that helper. -- Jens Axboe