Red Hat Bugzilla – Bug 364351
NFS: Fix directory caching problem - with test case and patch.
Last modified: 2010-10-22 16:01:54 EDT
This patch was pushed upstream last June. The testcase fails on current RHEL4
and RHEL5. Patch fixes RHEL4 and I assume it'll fix RHEL5 as well. Description
of problem and testcase is in the patch description.
There is some speculation that this problem may be related to the problems seen
in bug 327591. At the very least though, this is a reproducible problem in and
of itself and should probably be fixed.
Created attachment 246911 [details]
patch -- discard pagecahe for dirs on dentry iput
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Is said testcase that fails available to QE and if so where?
I recently ran into a NFS directory caching problem on 5.0 as well as 5.1. It
appears that I have encountered bug 364351.
In researching my problem I found bug 327591 and by extension bug 364351. I used
the test script documented in bug 327591 and found at the following URL.
I was able to reproduce the problem on my 5.0, and 5.1 boxes, but not on my 3.8
boxes. I went ahead and tested your RHEL5 test kernels found at the following URL.
I can confirm that the following kernels work in my dev environment and that
they fix bug 364351.
I am cross posting this to both bug bug 364351 and bug 327591 as they are
possibly related and the kernels tested above contain potential fixes for both
bugs, though no test case exists for bug 327591.
There's a shell script in the patch description of the patch in comment #1.
On a current RHEL5.1 kernel, the tar command will report an error (something
like "File changed as we read it"). With this patch, the script runs without error.
You can download this test kernel from http://people.redhat.com/dzickus/el5
Confirmed bug with the testcase attached using kernel -53.1.4.el5. Confirmed the
fix is working as expected with the -84 kernel.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
When creating tar files of our system closure we get multiple error messages saying "file changed as we read it". They all relate to files of the same name that are in different locations, something that is probably common for many users.
This is a non-trivial error because when we try to extract from the archive tar outputs: "Cannot open: No such file or directory".
I will ask that our sys admin guys update the kernel with the info supplied above and then try again. If this patch works for us then I'll let you know. In which case I would recommend you update your severity level because tar is such a critical utility for so many people.