When returning from schedule_tail() ...

William Tambe tambewilliam at gmail.com
Wed Jul 15 20:01:32 EDT 2020


On Wed, Jul 15, 2020 at 7:32 PM Valdis Klētnieks
<valdis.kletnieks at vt.edu> wrote:
>
> On Wed, 15 Jul 2020 10:05:25 -0400, William Tambe said:
> > When returning from schedule_tail(), is it still necessary to check
> > for (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME) before resuming task ?
>
> Well.. since the semantics of signals are defined as being delivered
> when a process returns from the kernel, how would you avoid checking
> for a pending signal and still maintain the semantics?

schedule_tail() is called for a task that has just been created, hence
the reason why I asked whether for such as newly created task, is it
necessary to check for (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME) ?



More information about the Kernelnewbies mailing list