public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sched: static_key sched_feat race + cleanup
@ 2014-07-02 15:52 Jason Baron
  2014-07-02 15:52 ` [PATCH 1/2] sched: remove extra static_key function indirection Jason Baron
  2014-07-02 15:52 ` [PATCH 2/2] sched: fix static_key race with sched_feat Jason Baron
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Baron @ 2014-07-02 15:52 UTC (permalink / raw)
  To: peterz, mingo; +Cc: linux-kernel, andi, rostedt

Hi,

Andi Kleen previously pointed out a get/set race in the sched_feat()
infrastructure. I had previously proposed to address this with a new
static_key set_true/set_false API:

http://www.gossamer-threads.com/lists/linux/kernel/1955879

However, I think its simpler to just add higher level locking as
Ingo previously suggested, and that is how other consumers of the
this interface are already operating. It seems a bit like overkill
to add this new API, just for this one case.

So, this locking change is in patch 2. Patch 1 is a small cleanup, but
no functional change.
 
Thanks,

-Jason

Jason Baron (2):
  sched: remove extra static_key function indirection
  sched: fix static_key race with sched_feat

 kernel/sched/core.c  |  5 +++++
 kernel/sched/sched.h | 12 +-----------
 2 files changed, 6 insertions(+), 11 deletions(-)

-- 
1.8.2.rc2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-16 19:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 15:52 [PATCH 0/2] sched: static_key sched_feat race + cleanup Jason Baron
2014-07-02 15:52 ` [PATCH 1/2] sched: remove extra static_key function indirection Jason Baron
2014-07-16 19:23   ` [tip:sched/core] sched: Remove extra static_key*() " tip-bot for Jason Baron
2014-07-02 15:52 ` [PATCH 2/2] sched: fix static_key race with sched_feat Jason Baron
2014-07-16 19:23   ` [tip:sched/core] sched: Fix static_key race with sched_feat() tip-bot for Jason Baron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox