Re: [PATCH 18/20] signal: Add calculate_sigpending()
From: Oleg Nesterov
Date: Thu Jul 26 2018 - 12:24:06 EST
On 07/26, Eric W. Biederman wrote:
>
> > Easy to fix, but perhaps we can simply add recalc_sigpending() into
> > schedule_tail() ? It already does more than just finish_task_switch/etc.
> >
> > This way we do not need the new helper (which btw can only be used by
> > copy_process).
>
> The problem I have with reusing recalc_sigpending is that it does not
> set TIF_SIGPENDING if (freezing || klp_patch_pending).
Ah, indeed, you are right.
Oleg.