Subject: Re: loaning for read() of regular files
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 02/15/2005 18:36:04
On Tue, Feb 15, 2005 at 09:37:41PM +0100, Matthias Drochner wrote:
> 
> chuq@chuq.com said:
> >     int uvm_map_loanobj(struct vm_map *, struct uvm_object *, struct
> > uio *); 
> 
> Is there a reason (besides conservatism) that this
> is done on a whole-uio base?

no good reason, mostly I was just being lazy.


> The uio is unrolled in fs code later anyway, and having
> the hook there (or even integrating it into ubc_alloc???)
> would allow for more fine-grained alignment checks,
> eventually loaning single pages out of a smaller read().

you mean a larger read()?

we can certainly do the head/page-aligned-body/tail split for
unaligned memory ranges, so that the middle part can use loaning.
I'll think about how to structure that.

-Chuck