From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Re: [PATCH 2/2] dlm: Add down/up_write_non_owner to keep lockdep happy
Date: Thu, 12 Nov 2009 17:27:21 +0000 [thread overview]
Message-ID: <1258046841.6052.889.camel@localhost.localdomain> (raw)
In-Reply-To: <1258044339.4039.685.camel@laptop>
Hi,
On Thu, 2009-11-12 at 17:45 +0100, Peter Zijlstra wrote:
> On Thu, 2009-11-12 at 11:14 -0600, David Teigland wrote:
> > up_write_non_owner()
> > addresses this trace, which as you say, is from doing the down and up from
> > different threads (which is the intention):
>
> That's really something I cannot advice to do. Aside from loosing
> lock-dependency validation (not a good thing), asymmetric locking like
> that is generally very hard to analyze since its not clear who 'owns'
> what data when.
>
> There are a few places in the kernel that use the non_owner things, and
> we should generally strive to remove them, not add more.
>
> Please consider solving your problem without adding things like this.
>
The code that does this already exists - it is not being added by the
patch. Its just that in recent kernels lockdep has started noticing the
problem. I did seriously consider changing the locking rather than just
silencing the messages, but it looks rather complicated and not easily
replaced with other primitives.
Any suggestions as to a better solution are welcome,
Steve.
next prev parent reply other threads:[~2009-11-12 17:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 14:56 [Cluster-devel] A couple of DLM patches Steven Whitehouse
2009-10-13 14:56 ` [Cluster-devel] [PATCH 1/2] dlm: Send lockspace name with uevents Steven Whitehouse
2009-10-13 14:53 ` [Cluster-devel] " David Teigland
2009-10-13 15:23 ` David Teigland
2009-10-13 15:43 ` Steven Whitehouse
2009-10-13 14:56 ` [Cluster-devel] [PATCH 2/2] dlm: Add down/up_write_non_owner to keep lockdep happy Steven Whitehouse
2009-11-12 13:27 ` [Cluster-devel] " Steven Whitehouse
[not found] ` <20091112142211.GA468@elte.hu>
2009-11-12 14:29 ` Steven Whitehouse
2009-11-12 17:14 ` David Teigland
2009-11-12 17:24 ` Steven Whitehouse
2009-11-12 18:34 ` David Teigland
2009-11-13 10:21 ` Steven Whitehouse
[not found] ` <1258044339.4039.685.camel@laptop>
2009-11-12 17:27 ` Steven Whitehouse [this message]
2009-11-12 18:21 ` David Teigland
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=1258046841.6052.889.camel@localhost.localdomain \
--to=swhiteho@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).