From: Alan Huang <mmpgouride@gmail.com>
To: paulmck@kernel.org
Cc: perfbook@vger.kernel.org
Subject: Re: Question: In what circumstances would the enqueuer fail?
Date: Tue, 30 May 2023 23:02:45 +0800 [thread overview]
Message-ID: <8F0AE999-C5FC-4AD2-B11D-5E9986AB1440@gmail.com> (raw)
In-Reply-To: <451e4440-b315-451b-a0ec-e211b219b724@paulmck-laptop>
> 2023年5月30日 08:36,Paul E. McKenney <paulmck@kernel.org> 写道:
>
> On Tue, May 30, 2023 at 12:48:33AM +0800, Alan Huang wrote:
>> Hi,
>>
>> I’m reading 14.2.1.3 Half-NBS Queue, there is one sentence says:
>>
>> The enqueuer might have failed between lines 9 and 10 of the listing, so that the element in question is only partially enqueued.
>>
>> My question is: In what circumstances would the enqueuer fail between lines 9 and 10 ?
>
> The following circumstances would do it:
>
> o Someone kills the thread at that point.
>
> o The CPU that the thread is running on takes an interrupt,
> but there is an infinite-loop bug in the interrupt handler,
> so that the thread's execution is never resumed.
>
> o The CPU that the thread is running on fail-stops, again
> preventing that thread from resuming. (This is rare, but
> does occasionally happen, especially on old or thermally
> abused hardware.)
>
> So nothing normal, if that is what you are asking. ;-)
Yeah, nothing normal. I often neglect to consider these exceptional cases.
Thank you for the explanation!
Thanks,
Alan
>
> Thanx, Paul
prev parent reply other threads:[~2023-05-30 15:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-29 16:48 Question: In what circumstances would the enqueuer fail? Alan Huang
2023-05-30 0:36 ` Paul E. McKenney
2023-05-30 15:00 ` Alan Huang
2023-05-30 15:02 ` Alan Huang [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=8F0AE999-C5FC-4AD2-B11D-5E9986AB1440@gmail.com \
--to=mmpgouride@gmail.com \
--cc=paulmck@kernel.org \
--cc=perfbook@vger.kernel.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).