kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* When returning from schedule_tail() ...
@ 2020-07-15 14:05 William Tambe
  2020-07-15 23:31 ` Valdis Klētnieks
  0 siblings, 1 reply; 3+ messages in thread
From: William Tambe @ 2020-07-15 14:05 UTC (permalink / raw)
  To: Kernel Newbies

When returning from schedule_tail(), is it still necessary to check
for (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME) before resuming task ?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: When returning from schedule_tail() ...
  2020-07-15 14:05 When returning from schedule_tail() William Tambe
@ 2020-07-15 23:31 ` Valdis Klētnieks
  2020-07-16  0:01   ` William Tambe
  0 siblings, 1 reply; 3+ messages in thread
From: Valdis Klētnieks @ 2020-07-15 23:31 UTC (permalink / raw)
  To: William Tambe; +Cc: Kernel Newbies


[-- Attachment #1.1: Type: text/plain, Size: 388 bytes --]

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?

[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: When returning from schedule_tail() ...
  2020-07-15 23:31 ` Valdis Klētnieks
@ 2020-07-16  0:01   ` William Tambe
  0 siblings, 0 replies; 3+ messages in thread
From: William Tambe @ 2020-07-16  0:01 UTC (permalink / raw)
  To: Valdis Klētnieks; +Cc: Kernel Newbies

On Wed, Jul 15, 2020 at 7:32 PM Valdis Klētnieks
<valdis.kletnieks@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) ?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-16  0:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 14:05 When returning from schedule_tail() William Tambe
2020-07-15 23:31 ` Valdis Klētnieks
2020-07-16  0:01   ` William Tambe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).