[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191204131216.GV2844@hirez.programming.kicks-ass.net>
Date: Wed, 4 Dec 2019 14:12:16 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: "Liang, Kan" <kan.liang@...ux.intel.com>
Cc: Andi Kleen <ak@...ux.intel.com>, mingo@...hat.com, acme@...nel.org,
tglx@...utronix.de, bp@...en8.de, linux-kernel@...r.kernel.org,
eranian@...gle.com, alexey.budankov@...ux.intel.com,
vitaly.slobodskoy@...el.com
Subject: Re: [RFC PATCH 3/8] perf: Init/fini PMU specific data
On Mon, Dec 02, 2019 at 03:44:34PM -0500, Liang, Kan wrote:
> It's not in context switch. I will use the normal spinlock to instead.
Mutex would make even more sense. And we already have a per-task
perf_event_mutex.
Also, I don't think you need tasklist_lock here, if you set the state
before the iteration, any new clone()s will observe the state and
allocate the storage themselves. Then all you need is RCU iteration of
the tasklist.
Powered by blists - more mailing lists