From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Mike Galbraith <umgwanakikbuti@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
linux-rt-users <linux-rt-users@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
John Kacur <jkacur@redhat.com>
Subject: Re: [patchlet] locking/rt: fix rt_read_lock() lockdep annotation.
Date: Fri, 9 May 2014 15:27:13 +0200 [thread overview]
Message-ID: <20140509132713.GH29014@linutronix.de> (raw)
In-Reply-To: <1399472415.5248.15.camel@marge.simpson.net>
* Mike Galbraith | 2014-05-07 16:20:15 [+0200]:
>> > This looks like it reverse applies?
>> Nope, I thought Thomas's whacked the one he did on purpose.
>I should learn to speak lockdep. How about this instead?
>
>locking/rt: fix rt_read_trylock() lockdep annotation.
>
>rt-rw-lockdep-annotations.patch dropped a rwlock_acquire_read
>
>Signed-off-by: Mike Galbraith <umgwanakikbuti@gmail.com>
>---
> kernel/locking/rt.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
>--- a/kernel/locking/rt.c
>+++ b/kernel/locking/rt.c
>@@ -217,7 +217,7 @@ int __lockfunc rt_read_trylock(rwlock_t
> migrate_disable();
> ret = rt_mutex_trylock(lock);
> if (ret)
>- rwlock_acquire(&rwlock->dep_map, 0, 1, _RET_IP_);
>+ rwlock_acquire_read(&rwlock->dep_map, 0, 1, _RET_IP_);
Think we should drop rwlock_acquire_read() and use rwlock_acquire()
instead (like the previous patch) because on -RT there is no difference
between a read and a write lock. Or is there more to it?
> else
> migrate_enable();
>
Sebastian
next prev parent reply other threads:[~2014-05-09 13:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 17:01 [ANNOUNCE] 3.14.2-rt3 Sebastian Andrzej Siewior
2014-05-05 3:26 ` Mike Galbraith
2014-05-07 7:54 ` [patchlet] locking/rt: fix rt_read_lock() lockdep annotation Mike Galbraith
2014-05-07 13:48 ` Steven Rostedt
2014-05-07 14:01 ` Mike Galbraith
2014-05-07 14:20 ` Mike Galbraith
2014-05-09 13:27 ` Sebastian Andrzej Siewior [this message]
2014-05-09 14:18 ` Mike Galbraith
2014-05-09 14:39 ` Steven Rostedt
2014-05-07 16:27 ` [ANNOUNCE] 3.14.2-rt3 Joakim Hernberg
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=20140509132713.GH29014@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=umgwanakikbuti@gmail.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).