Re: [RFC PATCH for 4.18 00/14] Restartable Sequences

From: Steven Rostedt
Date: Wed May 02 2018 - 12:43:03 EST


On Wed, 02 May 2018 16:07:48 +0000
Daniel Colascione <dancol@xxxxxxxxxx> wrote:

> Why couldn't we take a page fault just before schedule? The reason we can't
> take a page fault in atomic context is that doing so might call schedule.
> Here, we're about to call schedule _anyway_, so what harm does it do to
> call something that might call schedule? If we schedule via that call, we
> can skip the manual schedule we were going to perform.

Another issue is slowing down something that is considered a fast path.

-- Steve