From: Stephane Eranian <eranian@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: q-tools OOPS: Fixed perfmon.
Date: Tue, 09 Dec 2003 21:54:01 +0000 [thread overview]
Message-ID: <marc-linux-ia64-107100743218765@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-107092926502909@msgid-missing>
Peter,
On Mon, Dec 08, 2003 at 05:57:04PM -0800, Stephane Eranian wrote:
>
> Yes, clearly you do not want to preempt in the perfmon interrupt handler.
> I think we need to also make sure we do not preempt during the perfmonctl()
> system call, at least until we verify that there is no assumptions in there.
> Similarly in all the VFS entry points, such as pfm_close(). I will try
> and see what I can do before the end of the week.
>
I checked the code and I believe we are covered because we rely upon
spin_lock_irqsave/restore for most entry points into perfmon-2. That
is enough to block/unblock preemption in all the calls that need it.
That applies to the sys_perfmonctl() entry, the VFS entry points
as well as the internal entry points for copy_threads() and a few others.
The only one missing is the one you found. The PMU state save/restore
are called from the scheduler and are therefore protected as well.
Thanks for tracking down that one bug.
--
-Stephane
prev parent reply other threads:[~2003-12-09 21:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-09 0:17 q-tools OOPS: Fixed perfmon Peter Chubb
2003-12-09 1:24 ` Matthew Wilcox
2003-12-09 1:57 ` Stephane Eranian
2003-12-09 3:22 ` David Mosberger
2003-12-09 13:46 ` Martin Hicks
2003-12-09 17:26 ` David Mosberger
2003-12-09 21:54 ` Stephane Eranian [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=marc-linux-ia64-107100743218765@msgid-missing \
--to=eranian@hpl.hp.com \
--cc=linux-ia64@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.