Re: An nfs/automount Oops

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Thu Apr 20 2000 - 07:08:58 EST


I think I've found a bug in the 2.3.99-pre5 NFS code which may be
pertinent:
For some long lost reason, I seem to be assuming that the file
system-specific union in the super block is zeroed out before
->read_super() is called. This is only the case if a new super block
has been allocated by a call to get_empty_super(). It is not true if
the super block has been recycled.

I therefore strongly suspect that the following 1-liner may fix the
Oopses people have been seeing with NFS+autofs in 2.3.99-pre5.

Cheers,
  Trond

--- linux-2.3.99-pre5/fs/nfs/inode.c.orig Wed Apr 12 02:09:02 2000
+++ linux-2.3.99-pre5/fs/nfs/inode.c Thu Apr 20 13:34:26 2000
@@ -260,6 +260,7 @@
         struct nfs_fsinfo fsinfo;
         int tcp, version, maxlen;
 
+ memset(&sb->u.nfs_sb, 0, sizeof(sb->u.nfs_sb));
         if (!data)
                 goto out_miss_args;
 

-
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/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:16 EST