xfs
[Top] [All Lists]

Re: 2.6.2-rc2 nfsd+xfs spins in i_size_read()

To: Steve Lord <lord@xxxxxxx>
Subject: Re: 2.6.2-rc2 nfsd+xfs spins in i_size_read()
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Wed, 4 Feb 2004 15:16:47 +0000
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, Miquel van Smoorenburg <miquels@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>, Nathan Scott <nathans@xxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-xfs@xxxxxxxxxxx
In-reply-to: <401FAC70.8070104@xfs.org>; from lord@xfs.org on Tue, Feb 03, 2004 at 08:13:04AM -0600
Mail-followup-to: Christoph Hellwig <hch@xxxxxxxxxxxxx>, Steve Lord <lord@xxxxxxx>, Miquel van Smoorenburg <miquels@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>, Nathan Scott <nathans@xxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-xfs@xxxxxxxxxxx
References: <bv8qr7$m2v$1@news.cistron.nl> <20040129063009.GD2474@frodo> <bv8qr7$m2v$1@news.cistron.nl> <20040128222521.75a7d74f.akpm@osdl.org> <20040129063009.GD2474@frodo> <20040129232033.GA10541@cistron.nl> <20040204000315.A12127@infradead.org> <401FAC70.8070104@xfs.org>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
On Tue, Feb 03, 2004 at 08:13:04AM -0600, Steve Lord wrote:
> >                     ip->i_rdev = rdev;
> > -           else if (S_ISDIR(mode))
> > -                   validate_fields(ip);
> > +           validate_fields(ip);
> 
> There was some reason this was only necessary on directories, but I
> cannot remember why just now.

Well, it is nessecary now to update i_size.  Or rather it was, I think
I can get rid of it again after taking care of initialize_vnode.

> I think this should work, it just leaves the extending O_DIRECT write
> case.

And initialize_vnode.  I have a working patch for the latter, but I still
need to take a look at O_DIRECT.

> Keeping the revalidate call out of the path for creating regular
> files would be nice though, why did you deem that necessary?

I thought I need it for i_size udates, but we should be able to take
care of it in initialize_vnode.


<Prev in Thread] Current Thread [Next in Thread>