All of lore.kernel.org
 help / color / mirror / Atom feed
* nfs_refresh_inode: inode number mismatch (bug)
@ 2003-06-02  8:37 Frank Cusack
  2003-06-02  9:46 ` Frank Cusack
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Cusack @ 2003-06-02  8:37 UTC (permalink / raw)
  To: nfs, trond.myklebust

Hi,

I'm using a frankenstein kernel, 2.4.21-rc3 with some -ac bits,
and 2.5.69 NFS+RPC backported to it.  Like the CITI kernel (for krb5),
but a little more aggressive on the bits backported.

I've found an issue with nfs_rmdir(), at least that's where I think it is.
Consider these two shell sequences:

	    1				    2

	cd /nfs				cd /nfs
	mkdir tmp
	echo foo > tmp/foo
	less tmp/foo
	 [less waits for input]
					rm -rf tmp
	'v'
	 [vi tries to access tmp/foo]

At this point, inode.c:__nfs_refresh_inode() prints the "inode number
mismatch" error.  AFAICT, this is just noise, but the noise is driving
me crazy. :-)  I'm using fsstress and I can't tell if the messages are
all because of this problem, or if my backport is bad as well.

Now, if sequence 2 is run on a different machine, there is no error!
So that hints to me that the local cache just needs to be cleared,
perhaps in nfs_rmdir() or maybe in nfs_unlink()/nfs_safe_remove().
I've tried a few things, but I'm not familiar enough with the code
and am not making headway.

The stock 2.4.20 has this problem as well.  I haven't tried any 2.5
kernels.  The 2.2 kernel doesn't have this problem, because it doesn't
allow you to unlink a .nfsXXX file while it's open (and therefore you
cannot remove the dir); clearly incorrect behavior.

This is against a netapp server, although I can't see how the server would
matter.

Thanks for any advice, guidance, or hopefully a fix!  BTW, I'm interested
to hear what tools folks use to stress NFS.

/fc


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-02  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-02  8:37 nfs_refresh_inode: inode number mismatch (bug) Frank Cusack
2003-06-02  9:46 ` Frank Cusack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.