login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
25
Re: [PATCH] perf_events: fix event scheduling issues introduced by transactional API (take 2)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Stephane Eranian
Subject:
Re: [PATCH] perf_events: fix event scheduling issues introduced by transactional API (take 2)
Date: Tuesday, May 25, 2010 - 9:20 am
On Tue, May 25, 2010 at 6:18 PM, Peter Zijlstra <peterz@infradead.org> wrote:
quoted text
> On Tue, 2010-05-25 at 18:10 +0200, Stephane Eranian wrote: >> > Index: linux-2.6/kernel/perf_event.c >> > =================================================================== >> > --- linux-2.6.orig/kernel/perf_event.c >> > +++ linux-2.6/kernel/perf_event.c >> > @@ -668,15 +668,9 @@ group_sched_in(struct perf_event *group_ >> > } >> > } >> > >> > - if (!txn) >> > + if (!txn || !pmu->commit_txn(pmu)) >> > return 0; >> > >> > - ret = pmu->commit_txn(pmu); >> > - if (!ret) { >> > - pmu->cancel_txn(pmu); >> > - return 0; >> > - } >> > - >> > group_error: >> > /* >> > * Groups can be scheduled in as one unit only, so undo any >> > >> Looks okay. >> >> I believe you can also drop the txn test in group_sched_in() after group_error:, >> given you have the if !(txn) return 0. > > Can't we still get in the group_error: branch with either scenario? >
You're right. We must keep it because of failure in the siblings' loop. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] perf_events: fix event scheduling issues introduce ...
, Stephane Eranian
, (Tue May 25, 6:20 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Peter Zijlstra
, (Tue May 25, 6:35 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, stephane eranian
, (Tue May 25, 6:39 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Peter Zijlstra
, (Tue May 25, 7:03 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Stephane Eranian
, (Tue May 25, 7:19 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Stephane Eranian
, (Tue May 25, 8:02 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Peter Zijlstra
, (Tue May 25, 8:32 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Peter Zijlstra
, (Tue May 25, 8:58 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Stephane Eranian
, (Tue May 25, 9:10 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Peter Zijlstra
, (Tue May 25, 9:18 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Stephane Eranian
, (Tue May 25, 9:20 am)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Lin Ming
, (Tue May 25, 11:34 pm)
Re: [PATCH] perf_events: fix event scheduling issues intro ...
, Stephane Eranian
, (Tue May 25, 11:58 pm)
[tip:perf/urgent] perf_events: Fix event scheduling issues ...
, tip-bot for Stephane ...
, (Mon May 31, 12:20 am)
[tip:perf/core] perf: Cleanup {start,commit,cancel}_txn de ...
, tip-bot for Peter Zi ...
, (Wed Jun 9, 3:15 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Benjamin Herrenschmidt
[git pull] Please pull powerpc.git merge branch
Vivek Goyal
Re: [PATCH v4] sched: automated per session task groups
Bart Van Assche
Re: Integration of SCST in the mainstream Linux kernel
git
:
Mike Miller
git message
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
Christian MICHON
Re: VCS comparison table
Scott Chacon
Re: why not TortoiseGit
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
David Miller
Re: [PATCH 2/5] dccp: Auto-load (when supported) CCID plugins for negotiation
Chuck Lever
Re: svc: failed to register lockdv1 RPC service (errno 97).
David Miller
Re: [PATCH 2/3] [TCP]: Comment fastpath_cnt_hint off-by-one trap
git-commits-head
:
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
NFSv4: Move error handling out of the delegation generic code
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
V4L/DVB: au8522: fix race condition in switching from digital to analog mode
Linux Kernel Mailing List
[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
openbsd-misc
:
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
Vikas N Kumar
Re: Singularity OS
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate