From: William Tambe <tambewilliam@gmail.com>
To: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
Cc: Kernel Newbies <kernelnewbies@kernelnewbies.org>
Subject: Re: When returning from schedule_tail() ...
Date: Wed, 15 Jul 2020 20:01:32 -0400 [thread overview]
Message-ID: <CAF8i9mMgnT3neb_jSv+c82Agn6Efxd8L+KSb7ODxd7Zt_SzWxA@mail.gmail.com> (raw)
In-Reply-To: <590787.1594855912@turing-police>
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
prev parent reply other threads:[~2020-07-16 0:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAF8i9mMgnT3neb_jSv+c82Agn6Efxd8L+KSb7ODxd7Zt_SzWxA@mail.gmail.com \
--to=tambewilliam@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=valdis.kletnieks@vt.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).