mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: wang dengyi <dy_wang@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: umount error: device is busy after nfs + lock
Date: Mon, 15 May 2006 11:59:40 -0700 (PDT)	[thread overview]
Message-ID: <20060515185940.16459.qmail@web51912.mail.yahoo.com> (raw)

Hello,

When I ran ltp test case:tlocklfs, I met a old problem
with the kernel:2.6.9. I can not umount a file system
after nfs and lock using it. Here is the steps.
 1) mount /dev/sda3 /xyz
 2) export /xyz
 3) restart nfs
 4) mount 127.0.0.1:/xyz /mnt/nfs_xyz
 5) run the special lock test program: "tlocklfs -t 7
/mnt/nfs_xyz
 6) umount /mnt/nfs_xyz
 7) stop nfs
 8) umount /xyz
Then I got the error: "umount /xyz: device is busy".
And the error displays twice. 

If I run the different lock test case for the step 5,
the umount works fine. It only failed on the test case
7 from tlocklfs. 

There are 2 processes in this special test case.
First, the parent process "setlk" for a file from nfs
file system. Then the child process "setlkw". At the
end, the parent and the child process unlock the file.


With some debug line in the code, I found the file
system's "mnt_count" is 3 instead of 2 before
umounting it. I traced back the problem and I'm lost
in linux/net/sunrpc/sched.c. Could anyone give me some
hint? Thank you very much.

Best regard

Dengyi Wang
  

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

             reply	other threads:[~2006-05-15 18:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 18:59 wang dengyi [this message]
2006-05-15 23:32 ` Trond Myklebust

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=20060515185940.16459.qmail@web51912.mail.yahoo.com \
    --to=dy_wang@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®