> Alan, Trond, et al, A previously-intermittant bug has now
> become chronic. Whenever I fire up my newsreader (slrn) in a
> situation where home directory is nfs-mounted, the ~/.newsrc
> file disappears on program exit, leaving only the *~ backup.
> This is the pertinent log section on the client at the time of
> program exit (there are no complaints server-side):
> Apr 4 11:26:16 paddy kernel: __nfs_fhget: inode 248045 busy,
> i_count=2, i_nlink=1 Apr 4 11:26:16 paddy kernel:
> nfs_free_dentries: found hirsch/.newsrc, d_count=0, hashed=1
> Apr 4 11:26:16 paddy kernel: nfs_dentry_delete: hirsch/.newsrc:
> ino=248045, count=2, nlink=1
> The client, paddy, is running kernel 2.2.2-ac3 and the server
> is at 2.2.5-ac2.
> Would it be helpful to instrument anything, or is the
> underlying problem understood already?
Hi Steven,
Sorry it's taken so long to reply, but I took a short holiday. Do
you get the same problem on newer 'ac' kernels? Do you think you could
try 2.2.5-ac4 (or anything newer than 2.2.4-ac1) together with the
following patch?
Cheers,
Trond
--- linux-2.2.4-ac1/fs/nfs/dir.c Fri Mar 26 16:25:30 1999
+++ linux/fs/nfs/dir.c Fri Mar 26 16:29:48 1999
@@ -439,9 +439,9 @@
if (fattr.fileid != inode->i_ino)
goto out_bad;
- if (dentry->d_count < 2) {
- /* Filehandle matches? */
- if (memcmp(dentry->d_fsdata, &fhandle, sizeof(struct nfs_fh)))
+ /* Filehandle matches? */
+ if (memcmp(dentry->d_fsdata, &fhandle, sizeof(struct nfs_fh))) {
+ if (dentry->d_count < 2 || nfs_revalidate(dentry))
goto out_bad;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/