[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1001071752240.7821@localhost.localdomain>
Date: Thu, 7 Jan 2010 18:00:42 -0800 (PST)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Trond Myklebust <Trond.Myklebust@...app.com>
cc: Andi Kleen <andi@...stfloor.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...e.hu>
Subject: Re: [GIT PULL] Please pull NFS client bugfixes....
On Thu, 7 Jan 2010, Linus Torvalds wrote:
>
> You cannot mmap a directory (and you can't readdir a non-directory), so if
> it's a per-inode NFS lock, then the simplest fix _might_ be to just put
> directory locks in a different lockdep class from non-directory locks.
> That might fix it.
>
> Of course, if it's not a per-inode lock, that doesn't help.
Hmm. I notice that we already do this in unlock_new_inode() for i_mutex.
And I googled for the problem, and it does indeed seem to be about the
normal i_mutex <-> mmap_sem thing with filldir-vs-mmap.
Is there perhaps some path where NFS creates new inodes without going
through the normal path? Like the root inode or something? So then you'd
have a root inode with i_mutex annotated as being in the same class as a
regular file, which completes the lockdep chain.
Or maybe there is something else I'm missing.
I'm adding Peter and Ingo to the Cc as the "lockdep guys". Maybe they see
what I am missing.
Linus
--
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