From: "J. Bruce Fields" <bfields@fieldses.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: Eric Sesterhenn <snakebyte@gmx.de>,
linux-nfs@vger.kernel.org, hch@lst.de, neilb@suse.de
Subject: Re: [PATCH] nfsd: fix double-lock of i_mutex on nfsv4 recovery directory
Date: Tue, 6 Jan 2009 15:07:51 -0500 [thread overview]
Message-ID: <20090106200751.GC5901@fieldses.org> (raw)
In-Reply-To: <20090106193256.GA13367@infradead.org>
On Tue, Jan 06, 2009 at 02:32:56PM -0500, Christoph Hellwig wrote:
> On Tue, Jan 06, 2009 at 02:23:01PM -0500, J. Bruce Fields wrote:
> > On Tue, Jan 06, 2009 at 12:58:29PM -0500, bfields wrote:
> > > No, then we just run into a deadlocks in unlink, create, or any of the
> > > other nfsd operations that want the parent lock to cover more than just
> > > the sync. So 4c728ef583b3d just doesn't work for nfsd.
> >
> > We could add another nfsd exception to vfs_sync() by taking the i_mutex
> > only in the "file != NULL" case. Perhaps there'd be some advantage to
> > having nfsd's peculiarity noted in the common code; I don't have
> > terifically strong feelings either way.
> >
> > However I'm inclined to think that at that point the special cases get
> > out of hand and that it would be better to keep this back in the nfsd
> > code itself. The following (tested this time) seems to work.
>
> Sorry, this is not going to do it. i_mutex is going to move into
> ->fsync soon unless we kill it entirely pretty soon. And for the
> cases of stckable filesystems what you do (aswell as the <= 2.6.28 case)
> is broken, as the NFS locking scheme can't apply to the lower stacked
> filesystem.
We need an immediate fix for the regression--nfsd (all versions) just
doesn't work at all in mainline right now. My apologies for not having
seen that earlier.
A more complete solution is going to take more than a day or two.
--b.
prev parent reply other threads:[~2009-01-06 20:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 10:02 (unknown) Eric Sesterhenn
2009-01-06 17:29 ` [PATCH] nfsd: fix double-lock of i_mutex on nfsv4 recovery directory J. Bruce Fields
2009-01-06 17:58 ` J. Bruce Fields
2009-01-06 19:23 ` J. Bruce Fields
2009-01-06 19:32 ` Christoph Hellwig
2009-01-06 20:07 ` J. Bruce Fields [this message]
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=20090106200751.GC5901@fieldses.org \
--to=bfields@fieldses.org \
--cc=hch@infradead.org \
--cc=hch@lst.de \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
--cc=snakebyte@gmx.de \
/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).