lkml.org 
[lkml]   [2012]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] task_work: add a scheduling point in task_work_run()
From
Date
On Tue, 2012-08-21 at 23:32 +0200, Eric Dumazet wrote:
> On Tue, 2012-08-21 at 16:37 -0400, Mimi Zohar wrote:
>
> > We're here, because fput() called schedule_work() to delay the last
> > fput(). The execution needs to take place before the syscall returns to
> > userspace. Need to read __schedule()... Do you know if cond_resched()
> > can guarantee that it will be executed before the return to userspace?
>
> Some clarifications :
>
> - fput() does not call schedule_work() in this case but task_work_add()
>
> - cond_resched() wont return to userspace.

Thanks for the clarification.

Mimi



\
 
 \ /
  Last update: 2012-08-22 06:01    [from the cache]
©2003-2011 Jasper Spaans