Date: Sat, 8 Sep 2001 18:29:10 -0700 (PDT) From: Andrew Lentvorski <buzmeg@hotmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/30449: NFS lock manager grants multiple locks on same file Message-ID: <200109090129.f891TAU84505@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 30449 >Category: bin >Synopsis: NFS lock manager grants multiple locks on same file >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 08 18:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Andrew Lentvorski >Release: 4.4-20010827-RC2 >Organization: >Environment: FreeBSD daffy.buzmeg.com 4.4-20010827-RC2 FreeBSD 4.4-20010827-RC2 #0: Mon Aug 27 20:53:32 PDT 2001 murray@ref4:/usr/src/sys/compile/GENERIC i386 >Description: Multiple requests to exclusively lock a file over NFS will succeed. I stumbled across this behavior when using a Solaris box to use fcntl to do a SETLKW (sample program is available if desired). The use of SETLKW bypasses the normal cacheing of lock requests when initiated by the same client. Thus, you have to set up the following scenario: Client 1 ---------------------- V NFS Server ^ Client 2 ---------------------- In order to test even the basic SETLK behavior since there is no longer any cacheing going on at the client level. Once you bypass the local cacheing, FreeBSD will hand out lock and unlock requests multiple times on the same file. I would dearly love to have the developer of the rpc.lockd code contact me so that I can help write (or at least carry out) regression tests for the NFS locking system. >How-To-Repeat: See above, or contact me for a sample program. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109090129.f891TAU84505>