Messages in this thread | | | Subject | Re: [PATCH] task_work: add a scheduling point in task_work_run() | From | Mimi Zohar <> | Date | Tue, 21 Aug 2012 23:13:41 -0400 |
| |
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
| |