lkml.org 
[lkml]   [2015]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Hang on large copy_from_user with PREEMPT_NONE
On Tue, Apr 07, 2015 at 11:12:31AM -0700, Linus Torvalds wrote:
> On Apr 7, 2015 10:58 AM, "Dave Jones" <davej@codemonkey.org.uk> wrote:
> > >
> > > +#define COPY_CHUNK_SIZE (16*PAGE_SIZE)
> >
> > This needs to be bigger, just to accomodate things like xfs, which
> > on my system is over 1mb. I think some out-of-tree modules
> > (not that I care deeply) are even bigger.
>
> Umm. It will happily copy megabytes of data. Or gigabytes. It just doors it
> in smaller chunks, and make sure to test the return value and possibly
> reschedule in between.

brain no worky. You are of course, correct.

Dave


\
 
 \ /
  Last update: 2015-04-07 23:41    [W:0.494 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site