2.2.10: a test-case for __nfs_fhget: inode still busy, i_count=2

Edouard G. Parmelan (Edouard.Parmelan@quadratec.fr)
Wed, 21 Jul 1999 17:13:54 +0200


--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii

Hi,

I have the log message ``__nfs_fhget: inode still busy, i_count=2''
with some NFS servers (SunOS, Dec OSF/1, and others). I have create a
test-case that trigger this log.

Both vanilla 2.2.10 and Alan 2.2.10-ac10, produce this message, with knfsd
and user-land nfsd.

This bug is trigger by the following conditions:
. a process A is in a NFS directory, said `nfs-tmp'.
. In the same time, another process B renames it to `nfs-current'
. then process A try to access his current directory `nfs-tmp', it receives
an I/O error and the kernel output the sanity-check message.

The following shell script trigger this bug, it win all the time :)

Hope this help.
PS: I'm not in these mailing lists, don't forget to CC me.

-- 
Edouard G. Parmelan                         Ingenieur Developpeur
Quadratec - Parc Club "Orsay Universite" - 14/16,rue Jean Rostand
91893 Orsay Cedex - FRANCE               Phone (+33)1 69 33 20 80
Email: edouard.parmelan@quadratec.fr http://membres.tripod.fr/egp

--GvXjxJ+pjyke8COw Content-Type: application/x-sh Content-Disposition: attachment; filename="nfs-dir-bug.sh"

#!/bin/sh

mkdir dir.current mkdir dir.tmp mv dir.current dir.old (cd dir.tmp; sleep 5; /bin/pwd) & sleep 1 mv dir.tmp dir.current

--GvXjxJ+pjyke8COw--

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