From: Thomas Gleixner <tglx@linutronix.de>
To: Oleg Nesterov <oleg@tv-sign.ru>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
George Anzinger <george@mvista.com>,
"Paul E. McKenney" <paulmck@us.ibm.com>
Subject: Re: [PATCH] ktimers subsystem
Date: Wed, 21 Sep 2005 20:20:05 +0200 [thread overview]
Message-ID: <1127326806.24044.456.camel@tglx.tec.linutronix.de> (raw)
In-Reply-To: <433143C1.8D1C6F9C@tv-sign.ru>
On Wed, 2005-09-21 at 15:28 +0400, Oleg Nesterov wrote:
> This is deadlockable.
>
> The caller of modify_ktimer()->internal_restart_ktimer() can hold locks
> which would prevent the completion of the ktimer->function().
True. You are right it is a potential source of dead locking. The
initial reason to implement it that way was that I wanted to avoid cross
cpu enqueueing for the high resolution timer case as I thought it would
make cross cpu timer event reprogramming necessary. But this is actually
a non issue, as the reprogramming check can be done after the timer
function has completed on the CPU where the function is running.
The loop is not necessary. I'll fix that up.
> Also, I don't understand why the timer is deleted _before_ checking that
> new_base != NULL. This way you can delete the timer (ret == 1), then goto
> retry, then get ret == 0.
Right. The return value must only be set on the first call to
remove_ktimer, but this is a non issue after removing the loop anyway.
Thanks for pointing this out,
tglx
next prev parent reply other threads:[~2005-09-21 18:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-21 11:28 Oleg Nesterov
2005-09-21 18:20 ` Thomas Gleixner [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-19 16:48 [ANNOUNCE] " tglx
2005-09-19 16:48 ` [PATCH] " tglx
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=1127326806.24044.456.camel@tglx.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=george@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=oleg@tv-sign.ru \
--cc=paulmck@us.ibm.com \
/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
all inboxes | Powered by JetHome®