Hi Keith,

This patch isn't in your -next pull. This papers over a spurious -EFAULT
in the pwrite/pread paths that actually gets hit in the wild. The real fix
in the form of a almost complete rewrite of the pwrite/pread paths won't
be ready for 3.2.

Do you want me to implement Chris' beautification suggestion? The code
as-is is copied over from the pagecache prefault helper. Otherwise please
consider merging for 3.2.

Yours, Daniel

On Wed, Sep 28, 2011 at 12:24:04PM +0100, Chris Wilson wrote:
> > +   if (ret == 0) {
> > +           if (((unsigned long)uaddr & PAGE_MASK) !=
> > +                           ((unsigned long)end & PAGE_MASK))
> This is a little ugly. Perhaps,
> 
>   #define page_align(addr) ((unsigned long)addr & PAGE_MASK)
>   if (page_align(uaddr) != page_align(end))
> 
> Otherwise, both are
> Reviewed-by: Chris Wilson <[email protected]>
> -Chris
> 
> -- 
> Chris Wilson, Intel Open Source Technology Centre

-- 
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to