login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
20
Re: nfs: lock stuck after interrupt
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
J. Bruce Fields <bfields@...>
To: Miklos Szeredi <miklos@...>
Cc: <trond.myklebust@...>, <eshel@...>, <neilb@...>, <akpm@...>, <linux-nfs@...>, <linux-kernel@...>, <linux-fsdevel@...>
Subject:
Re: nfs: lock stuck after interrupt
Date: Sunday, April 20, 2008 - 2:45 pm
On Thu, Apr 17, 2008 at 07:44:08PM +0200, Miklos Szeredi wrote:
quoted text
> 1) on server lock file X > 2) on client lock file X > blocks > 3) on client send interrupt to process doing locking > locking syscall restarted, continues blocking > 4) on server release lock on file X > on client lock is acquired > 5) on client release lock on file X > 6) on client lock file X > blocks > > Everything up to the last step is fine, but something goes wrong > during the final unlock. Stopping the nfs-server removes the stray > lock. > > Here's a trace on the server: > > lockd: request from 192.168.1.1, port=862 > lockd: LOCK called > lockd: nlm_lookup_host(192.168.1.2->192.168.1.1, p=6, v=4, my role=server, name=tucsk) > lockd: get host tucsk > lockd: nsm_monitor(tucsk) > lockd: nlm_lookup_file (02000001 00006200 00000002 0001783d 7f54ef79 00017801 d06c5915 00000000) > lockd: creating file for (02000001 00006200 00000002 0001783d 7f54ef79 00017801 d06c5915 00000000) > lockd: found file 0ad074c0 (count 0) > lockd: nlmsvc_lock(ubda/96317, ty=1, pi=1, 0-99, bl=1) > lockd: nlm_lookup_host(192.168.1.2->192.168.1.1, p=6, v=4, my role=server, name=tucsk) > lockd: get host tucsk > lockd: nlmsvc_lookup_block f=0ad074c0 pd=1 0-99 ty=1 > lockd: get host tucsk > lockd: created block 0aeabf80... > lockd: vfs_lock_file returned 1
Why is vfs_lock_file returning 1? It should be 0 or -ERRNO. --b.
quoted text
> lockd: nlmsvc_insert_block(0aeabf80, -1) > lockd: release host tucsk > lockd: nlmsvc_lock returned 50331648 > lockd: LOCK status 3 > lockd: release host tucsk > lockd: nlm_release_file(0ad074c0, ct = 2) > lockd: request from 192.168.1.1, port=862 > lockd: CANCEL called > lockd: nlm_lookup_host(192.168.1.2->192.168.1.1, p=6, v=4, my role=server, name=tucsk) > lockd: get host tucsk > lockd: nlm_lookup_file (02000001 00006200 00000002 0001783d 7f54ef79 00017801 d06c5915 00000000) > lockd: found file 0ad074c0 (count 1) > lockd: nlmsvc_cancel(ubda/96317, pi=1, 0-99) > lockd: nlmsvc_lookup_block f=0ad074c0 pd=1 0-99 ty=1 > lockd: check f=0ad074c0 pd=1 0-99 ty=1 cookie=36120000 > lockd: unlinking block 0aeabf80... > lockd: freeing block 0aeabf80... > lockd: release host tucsk > lockd: nlm_release_file(0ad074c0, ct = 2) > lockd: CANCEL status 0 > lockd: release host tucsk > lockd: nlm_release_file(0ad074c0, ct = 1) > lockd: closing file ubda/96317 > lockd: request from 192.168.1.1, port=862 > lockd: LOCK called > lockd: nlm_lookup_host(192.168.1.2->192.168.1.1, p=6, v=4, my role=server, name=tucsk) > lockd: get host tucsk > lockd: nsm_monitor(tucsk) > lockd: nlm_lookup_file (02000001 00006200 00000002 0001783d 7f54ef79 00017801 d06c5915 00000000) > lockd: creating file for (02000001 00006200 00000002 0001783d 7f54ef79 00017801 d06c5915 00000000) > lockd: found file 0ad074c0 (count 0) > lockd: nlmsvc_lock(ubda/96317, ty=1, pi=2, 0-99, bl=1) > lockd: nlm_lookup_host(192.168.1.2->192.168.1.1, p=6, v=4, my role=server, name=tucsk) > lockd: get host tucsk > lockd: nlmsvc_lookup_block f=0ad074c0 pd=2 0-99 ty=1 > lockd: get host tucsk > lockd: created block 0aeab240... > lockd: vfs_lock_file returned 0 > lockd: freeing block 0aeab240... > lockd: release host tucsk > lockd: nlm_release_file(0ad074c0, ct = 2) > lockd: release host tucsk > lockd: nlmsvc_lock returned 0 > lockd: LOCK status 0 > lockd: release host tucsk > lockd: nlm_release_file(0ad074c0, ct = 1) > lockd: request from 192.168.1.1, port=862 > lockd: UNLOCK called > lockd: nlm_lookup_host(192.168.1.2->192.168.1.1, p=6, v=4, my role=server, name=tucsk) > lockd: get host tucsk > lockd: nlm_lookup_file (02000001 00006200 00000002 0001783d 7f54ef79 00017801 d06c5915 00000000) > lockd: found file 0ad074c0 (count 0) > lockd: nlmsvc_unlock(ubda/96317, pi=3, 0-9223372036854775807) > lockd: nlmsvc_cancel(ubda/96317, pi=3, 0-9223372036854775807) > lockd: nlmsvc_lookup_block f=0ad074c0 pd=3 0-9223372036854775807 ty=2 > lockd: UNLOCK status 0 > lockd: release host tucsk > lockd: nlm_release_file(0ad074c0, ct = 1) > > > Everything looks normal, yet... > > This is 100% reproducable for me (ext3 exported over nfs, server and > client: 2.6-git). > > Miklos
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
nfs: lock stuck after interrupt
, Miklos Szeredi
, (Thu Apr 17, 1:44 pm)
Re: nfs: lock stuck after interrupt
, J. Bruce Fields
, (Sun Apr 20, 2:45 pm)
Re: nfs: lock stuck after interrupt
, Miklos Szeredi
, (Sun Apr 20, 3:24 pm)
Re: nfs: lock stuck after interrupt
, Aaron Wiebe
, (Thu Apr 17, 3:30 pm)
Re: nfs: lock stuck after interrupt
, Miklos Szeredi
, (Fri Apr 18, 7:07 am)
Re: nfs: lock stuck after interrupt
, Aaron Wiebe
, (Fri Apr 18, 8:20 am)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Peter Zijlstra
[PATCH 6/6] sched: disabled rt-bandwidth by default
Tejun Heo
[PATCHSET] FUSE: extend FUSE to support more operations
Avi Kivity
[PATCH 041/104] KVM: Don't assign vcpu->cr3 if it's invalid: check first, set last
Vegard Nossum
[RFC][PATCH] bitfields API
git
:
Rogan Dawes
Re: kernel.org mirroring (Re: [GIT PULL] MMC update)
David Kastrup
Terminology question about remote branches.
Tony Stubbs
git svn rebase - could not detach HEAD
Nicolas Pitre
Re: Understanding version 4 packs
openbsd-misc
:
James Hartley
scp batch mode?
Firas Kraiem
Possible mug in mini_sendmail-chroot.
Gregory Edigarov
Question on interface enumeration
bsd_news
LC_COLLATE and PostgreSQL
linux-netdev
:
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
Jay Vosburgh
[PATCH 6/9] net/bonding: Handlle wrong assumptions that slave is always an Etherne...
Radu Rendec
Re: Endianness problem with u32 classifier hash masks
Robert Olsson
[PATCH] pktgen multiqueue etc
Latest forum posts
unable to remove block device driver module
2 hours ago
Linux kernel
Is there anything like Real-time drivers?
1 day ago
Linux general
I can't allocate more than 4 MB with pci_alloc_consistent
1 day ago
Linux kernel
Resetting the bios password for Toshiba Laptop
1 day ago
Hardware
Kernel panic while installing fedora core 5 or ubuntu
2 days ago
Hardware
Interactive Linux kernel map
2 days ago
Linux kernel
unable to add a variable in buffer_head struct
2 days ago
Linux kernel
Linux Input driver - setting scaling/resolution on USB mouse
2 days ago
Linux kernel
Merging Of Two File Systems
4 days ago
Linux kernel
4 fulltime software engineer positions near LAX MAC BSD Kernel Development
6 days ago
OpenBSD
Show all forums...
Recent Tags
quote
Tux3
cramfs
Jared Hulbert
git
Andrew Morton
git 1.6.0
squashfs
Junio Hamano
GCC
2.6.27
filesystem
-rc
git 1.6
Linux
HAMMER
AXFS
Linus Torvalds
release
ufs
more tags
Colocation donated by:
Who's online
There are currently
6 users
and
1052 guests
online.
Online users
Jeremy
strcmp
mmessano
zeekec
camh
espenfjo
Syndicate
speck-geostationary