freebsd-skq/sys/fs/msdosfs
alfred a0282ebc04 I ran into an nfs client panic a couple of times in a row over the
last few days.  I tracked it down to the fact that nfs_reclaim()
is setting vp->v_data to NULL _before_ calling vnode_destroy_object().
After silence from the mailing list I checked further and discovered
that ufs_reclaim() is unique among FreeBSD filesystems for calling
vnode_destroy_object() early, long before tossing v_data or much
of anything else, for that matter.  The rest, including NFS, appear
to be identical, as if they were just clones of one original routine.

The enclosed patch fixes all file systems in essentially the same
way, by moving the call to vnode_destroy_object() to early in the
routine (before the call to vfs_hash_remove(), if any).  I have
only tested NFS, but I've now run for over eighteen hours with the
patch where I wouldn't get past four or five without it.

Submitted by: Frank Mayhar
Requested by: Mohan Srinivasan
MFC After: 1 week
2006-01-17 17:29:03 +00:00
..
bootsect.h Remove checks for BOOTSIG[23] from FAT32 bootblocks. 2005-09-29 14:09:46 +00:00
bpb.h /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
denode.h Give msdosfs a unique inode number which is really the byteoffset of 2005-04-07 07:55:37 +00:00
direntry.h /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
fat.h /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
msdosfs_conv.c [1] unix2doschr() 2005-07-17 07:10:05 +00:00
msdosfs_denode.c I ran into an nfs client panic a couple of times in a row over the 2006-01-17 17:29:03 +00:00
msdosfs_fat.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
msdosfs_fileno.c Normalize a significant number of kernel malloc type names: 2005-10-31 15:41:29 +00:00
msdosfs_iconv.c - Support for multibyte charsets in LIBICONV. 2003-09-26 20:26:25 +00:00
msdosfs_lookup.c Disable negative name caching for msdosfs to work around a bug. 2005-04-16 23:47:19 +00:00
msdosfs_vfsops.c Properly parse the nowin95 mount option. 2005-11-19 16:38:39 +00:00
msdosfs_vnops.c Remove debug printout of major/minor numbers, print name instead. 2005-02-27 21:16:26 +00:00
msdosfsmount.h Eliminate cdev pointer in inodes, they're not used or needed. 2005-03-15 20:57:25 +00:00