From: "Leonid Shatz" <leonid.shatz@ravellosystems.com>
To: "'Thomas Gleixner'" <tglx@linutronix.de>
Cc: "'Izik Eidus'" <izik.eidus@ravellosystems.com>,
"'Andrea Arcangeli'" <aarcange@redhat.com>,
<linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] fix hrtimer_enqueue_reprogram race
Date: Tue, 5 Feb 2013 14:36:51 +0200 [thread overview]
Message-ID: <03b301ce039d$7a272e60$6e758b20$@ravellosystems.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1302051155350.11905@ionos>
> > There are already locks used inside hrtimer code, so why should users
> > of the hrtimer add another layer of locks and get involved in the
> > intricacy of which cases are protected by internal hrtimer lock and
> > which are not?
>
> Groan. The hrtimer locks are there to protect the internal data structures
of
> the hrtimer code and to ensure that hrtimer functions are proper protected
> against concurrent running callbacks. But that does not give you any kind
of
> protection versus multiple users of your hrtimer resource.
>
I was not raising the issue of protecting the logic of hrtimer use cases -
this was not the scope of the entire issue. The issue was that internal
hrtimer locks were getting screwed and it was not reasonable to add external
layer of locks to protect internal hrtimer locks (I mean before this patch).
The fix should provide protection for internal locks and I think we both
agree on that.
Leonid
next prev parent reply other threads:[~2013-02-05 12:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 12:33 [PATCH] fix hrtimer_enqueue_reprogram race Izik Eidus
2013-02-05 10:44 ` Thomas Gleixner
2013-02-05 10:55 ` Leonid Shatz
2013-02-05 11:15 ` Thomas Gleixner
2013-02-05 12:36 ` Leonid Shatz [this message]
2013-02-05 11:02 ` [tip:timers/core] hrtimer: Prevent " tip-bot for Leonid Shatz
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='03b301ce039d$7a272e60$6e758b20$@ravellosystems.com' \
--to=leonid.shatz@ravellosystems.com \
--cc=aarcange@redhat.com \
--cc=izik.eidus@ravellosystems.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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