Re: [PATCH 2/2] block: fast-path for small and simple direct I/O requests

From: Christoph Hellwig
Date: Tue Nov 01 2016 - 10:19:48 EST


On Mon, Oct 31, 2016 at 04:19:11PM -0700, Omar Sandoval wrote:
> > + if (unlikely(ret))
> > + return ret;
> > + ret = bio.bi_iter.bi_size;
> > +
> > + if (iov_iter_rw(iter) == READ) {
> > + bio_set_op_attrs(&bio, REQ_OP_READ, 0);
> > + if (iter->type == ITER_IOVEC)
>
> Nit: iter_is_iovec()?

Fixed.