From: Jiri Kosina <jkosina@suse.cz>
To: Rik van Riel <riel@redhat.com>, Ingo Molnar <mingo@kernel.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: 3.8-rc2: lockdep is complaining about mm_take_all_locks()
Date: Fri, 4 Jan 2013 16:39:51 +0100 (CET) [thread overview]
Message-ID: <alpine.LNX.2.00.1301041639130.9143@pobox.suse.cz> (raw)
In-Reply-To: <alpine.LNX.2.00.1301041317150.9143@pobox.suse.cz>
On Fri, 4 Jan 2013, Jiri Kosina wrote:
> This is almost certainly because
>
> commit 5a505085f043e8380f83610f79642853c051e2f1
> Author: Ingo Molnar <mingo@kernel.org>
> Date: Sun Dec 2 19:56:46 2012 +0000
>
> mm/rmap: Convert the struct anon_vma::mutex to an rwsem
>
> did this to mm_take_all_locks():
>
> - mutex_lock_nest_lock(&anon_vma->root->mutex, &mm->mmap_sem);
> + down_write(&anon_vma->root->rwsem);
>
> killing the lockdep annotation that has been there since
>
> commit 454ed842d55740160334efc9ad56cfef54ed37bc
> Author: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Date: Mon Aug 11 09:30:25 2008 +0200
>
> lockdep: annotate mm_take_all_locks()
>
> The locking is obviously correct due to mmap_sem being held throughout the
> whole operation, but I am not completely sure how to annotate this
> properly for lockdep in down_write() case though. Ingo, please?
OK, I think the only solution is to introduce down_read_nest_lock(). I
will prepare a patch.
--
Jiri Kosina
SUSE Labs
next prev parent reply other threads:[~2013-01-04 15:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 12:49 Jiri Kosina
2013-01-04 15:39 ` Jiri Kosina [this message]
2013-01-05 0:34 ` [PATCH 1/2] lockdep, rwsem: provide down_write_nest_lock() Jiri Kosina
2013-01-05 0:35 ` [PATCH 2/2] mm: mmap: annotate vm_lock_anon_vma locking properly for lockdep Jiri Kosina
2013-01-11 17:00 ` Borislav Petkov
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=alpine.LNX.2.00.1301041639130.9143@pobox.suse.cz \
--to=jkosina@suse.cz \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@kernel.org \
--cc=riel@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
all inboxes | Powered by JetHome®