All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Dima Zavin <dima@android.com>
Cc: linux-kernel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>,
	Lai Jiangshan <laijs@cn.fujitsu.com>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] plist: add mutex to the blessed lock type for plists
Date: Wed, 29 Jun 2011 13:13:22 -0700	[thread overview]
Message-ID: <m2tyb81jml.fsf@firstfloor.org> (raw)
In-Reply-To: <1309376033-32005-1-git-send-email-dima@android.com> (Dima Zavin's message of "Wed, 29 Jun 2011 12:33:53 -0700")

Dima Zavin <dima@android.com> writes:

> Currently, plist debugging "enforces" that the plist is locked
> with either a raw_spinlock or a spinlock. The plist data structure
> is useful in other places, where spinlocks are unnecessary.
>
> Extend the plist initializers and debug checks to allow the plist
> to be protected by a mutex

Seems really ugly and clearly not a godo path. 

It's a bit like adding a 11th argument to a function which already has 
10.

Perhaps better move out the locking completely to wrappers and remove
the knowledge from the core plist code.

-Andi


-- 
ak@linux.intel.com -- Speaking for myself only

  parent reply	other threads:[~2011-06-29 20:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29 19:33 [PATCH] plist: add mutex to the blessed lock type for plists Dima Zavin
2011-06-29 20:01 ` Steven Rostedt
2011-06-29 20:10   ` Dima Zavin
2011-06-29 20:12     ` Dima Zavin
2011-06-29 20:13 ` Andi Kleen [this message]
2011-06-29 20:34   ` Dima Zavin
2011-06-29 20:43     ` Steven Rostedt
2011-06-30 22:14       ` Dima Zavin
2011-06-30 22:45         ` Steven Rostedt
2011-07-02 10:09           ` Peter Zijlstra
2011-06-29 20:36   ` Steven Rostedt

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=m2tyb81jml.fsf@firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=dima@android.com \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.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 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.