Re: [2.6.33-rc3] NFS4 and dentry issues...

From: Daniel J Blueman
Date: Thu Jan 14 2010 - 03:40:03 EST


Hi Trond,

On Sun, Jan 10, 2010 at 8:08 PM, Trond Myklebust
<trond.myklebust@xxxxxxxxxx> wrote:
> On Sat, 2010-01-09 at 14:32 +0000, Daniel J Blueman wrote:
>> When synchronising files (unison, like a two way rsync) over an NFS4
>> mount (server with 2.6.32.2) on a client running 2.6.33-rc3 (also
>> -rc2), I ran into dcache issues [1].
>>
>> I've been unable to consistently reproduce this for bisecting, and
>> filesystem benchmarks via NFS on tmpfs over localhost fails to
>> reproduce it either.
>>
>> What additional information may be useful?
>
> There is a known issue in 2.6.33-rc3 with rename causing corruption of
> the dentry lookup hash lists.
>
> A fix for that problem has already been merged into mainline as
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=56335936de1a41c8978fde62b2158af77ddc7258
>
> Could you see if you can reproduce your problem with that fix applied?

2.6.33-rc4 with the fix does address this issue, though I am now
occasionally seeing 'Stale NFS file handle' during parallel kernel
compilation over NFS4 [1], seemingly when stat(2) is called.

Client mount options are:

x1:/ /net nfs4 rw,relatime,vers=4,rsize=262144,wsize=262144,namlen=255,acregmin=30,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.10.2,addr=192.168.10.250
0 0

I'll see which -rc this was introduced in, from limited time.

Thanks,
Daniel

--- [1]

$ CONCURRENCY_LEVEL=4 fakeroot make-kpkg --append-to-version -308cd
--initrd kernel-image
...
CC [M] drivers/net/wireless/rt2x00/rt2500usb.o
CC [M] drivers/net/wireless/rt2x00/rt73usb.o
CC [M] drivers/net/wireless/rt2x00/rt2800usb.o
LD [M] drivers/net/wireless/rt2x00/rt2x00lib.o
Building modules, stage 2.
make[2]: stat: arch/x86/crypto/aes-x86_64.o: Stale NFS file handle
make[2]: stat: arch/x86/crypto/aesni-intel.o: Stale NFS file handle
make[2]: stat: arch/x86/crypto/salsa20-x86_64.o: Stale NFS file handle
make[2]: stat: arch/x86/crypto/twofish-x86_64.o: Stale NFS file handle
make[2]: stat: arch/x86/kernel/cpu/cpufreq/p4-clockmod.o: Stale NFS file handle
make[2]: stat: arch/x86/kernel/cpu/cpufreq/speedstep-lib.o: Stale NFS
file handle
....
--
Daniel J Blueman
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/