[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E1962BE.8010204@redhat.com>
Date: Sun, 10 Jul 2011 09:28:46 +0100
From: Ric Wheeler <rwheeler@...hat.com>
To: David Howells <dhowells@...hat.com>,
Alexander Viro <aviro@...hat.com>,
Christoph Hellwig <hch@...radead.org>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...e.hu>
CC: Michal Suchanek <hramrach@...trum.cz>, Ian Kent <ikent@...hat.com>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Jeff Moyer <jmoyer@...hat.com>, miklos@...redi.hu
Subject: Union mount and lockdep design issues
On 06/29/2011 11:17 AM, David Howells wrote:
> Ric Wheeler<ricwheeler@...il.com> wrote:
>
>> I think that it has been a while since David reposted the refreshed patch set
>> for union mounts& know that overlayfs has recent updates as well.
>>
>> Despite that, I have not seen a lot of feedback from reviewers or testers.
> The main problem I've got is that it causes lockdep to generate warnings when
> the top layer and one of the lower layers are of the same filesystem type. The
> obvious way round this is to give each superblock its own i_mutex lock class
> rather than putting this in the file_system_type struct, but I'm not sure of
> the consequences (the two obvious problems are superblock transience and the
> fact that there may be so many more of them that it may explode lockdep).
>
> I've split out some of the VFS patches that we might be interested in taking
> upstream anyway. They're currently sat on Al's plate for his consideration.
>
> I've been dealing with some of Al's issues with the unionmount patches, but I
> know he's got more - I just can't remember them all.
>
> David
After sitting down in person to dive into the lockdep issues with David over
some very nice food (thanks David!), it does seem that this is really more of a
lockdep issue and the way it is designed than a union mount issue.
Peter, Ingo, are either of you the right people to think about how to fix
lockdep to handle stacked components (like ext4 used in union mounts stacked on
top of another ext4 fs) where both layers will routinely lock to the same object?
Should we do a specific hack to work around this for union mounts or look for
lockdep to change?
Thanks!
Ric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists