login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
14
Re: nfs: infinite loop in fcntl(F_SETLKW)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: J. Bruce Fields
Subject:
Re: nfs: infinite loop in fcntl(F_SETLKW)
Date: Monday, April 14, 2008 - 10:07 am
On Sun, Apr 13, 2008 at 10:13:21AM +0200, Miklos Szeredi wrote:
quoted text
> > > > > OK. So the correct fix here should really be applied to fcntl_setlk(). > > > > > There is absolutely no reason why we should be looping at all if the > > > > > filesystem has a ->lock() method. > > > > > > > > > > In fact, this looping behaviour was introduced recently in commit > > > > > 7723ec9777d9832849b76475b1a21a2872a40d20. > > > > > > > > Apologies, that was indeed a behavioral change introduced in a commit > > > > that claimed just to be shuffling code around. > > > > > > Yeah, that patch looks totally wrong. It's not generally a good idea > > > to do a loop where the exit condition depends on something you don't > > > control. And error values from filesystem methods are typically like > > > that. For example with fuse, the error code could come from an > > > unprivileged userspace process. > > > > > > I didn't realize this aspect of the bug previously, because I > > > concentrated on the lockd inconsistency. > > > > So, does this patch on its own fix the problem you saw? > > Yes. With the patch applied, the test program returns "lockf: > Resource temporarily unavailable" instead of hanging.
OK, thanks! --b. --
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: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Thu Apr 10, 12:51 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Trond Myklebust
, (Thu Apr 10, 2:02 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Trond Myklebust
, (Thu Apr 10, 2:07 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Trond Myklebust
, (Thu Apr 10, 2:20 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, J. Bruce Fields
, (Thu Apr 10, 2:54 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Fri Apr 11, 12:12 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, J. Bruce Fields
, (Fri Apr 11, 12:19 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Fri Apr 11, 12:22 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, J. Bruce Fields
, (Sat Apr 12, 5:08 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Sun Apr 13, 1:13 am)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Sun Apr 13, 1:28 am)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, J. Bruce Fields
, (Mon Apr 14, 10:07 am)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, J. Bruce Fields
, (Mon Apr 14, 10:19 am)
[PATCH] locks: fix possible infinite loop in fcntl(F_SETLK ...
, J. Bruce Fields
, (Mon Apr 14, 12:03 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Mon Apr 14, 2:15 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, J. Bruce Fields
, (Tue Apr 15, 11:58 am)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Wed Apr 16, 9:28 am)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, J. Bruce Fields
, (Thu Apr 17, 3:26 pm)
Re: nfs: infinite loop in fcntl(F_SETLKW)
, Miklos Szeredi
, (Fri Apr 18, 5:47 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate