Linux NFS development
 help / color / mirror / Atom feed
From: Frank Cusack <fcusack@fcusack.com>
To: nfs@lists.sourceforge.net, trond.myklebust@fys.uio.no
Subject: nfs_refresh_inode: inode number mismatch (bug)
Date: Mon, 2 Jun 2003 01:37:31 -0700	[thread overview]
Message-ID: <20030602013731.B18730@google.com> (raw)

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

             reply	other threads:[~2003-06-02  8:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-02  8:37 Frank Cusack [this message]
2003-06-02  9:46 ` nfs_refresh_inode: inode number mismatch (bug) Frank Cusack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030602013731.B18730@google.com \
    --to=fcusack@fcusack.com \
    --cc=nfs@lists.sourceforge.net \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox