From: Volker Lendecke Subject: Re: [RFC PATCH 0/5] locks: implement "filp-private" (aka UNPOSIX) locks Date: Mon, 14 Oct 2013 09:24:46 +0200 Message-ID: References: <1381494322-2426-1-git-send-email-jlayton@redhat.com> <20131011200756.GB22160@fieldses.org> <20131011192118.483e436f@tlielax.poochiereds.net> <20131011234923.GD8688@samba2> <20131011204244.72c2d672@corrin.poochiereds.net> <024101cec776$8f004130$ad00c390$@mindspring.com> Reply-To: Volker.Lendecke@SerNet.DE Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: 'Jeff Layton' , 'Scott Lovenberg' , 'Jeremy Allison' , 'Andreas Dilger' , linux-fsdevel@vger.kernel.org, 'Ganesha NFS List' , samba-technical@lists.samba.org, 'Linux Kernel Mailing List' To: Frank Filz Return-path: Content-Disposition: inline In-Reply-To: <024101cec776$8f004130$ad00c390$@mindspring.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sat, Oct 12, 2013 at 11:12:03AM -0700, Frank Filz wrote: > > This blog post of Jeremy's explains some of the history: > >=20 > >=20 > > http://www.samba.org/samba/news/articles/low_point/tale_two_stds_os= 2 > > .html > >=20 > > See the section entitled "First Implementation Past the Post". >=20 > Interesting that Jeremy actually suggested the implementation should = have > had an arbitrary lock owner as part of the flock structure: >=20 > "This is an example of a POSIX interface not being future-proofed aga= inst > modern techniques such as threading. A simple amendment to the origin= al > primitive allowing a user-defined "locking context" (like a process i= d) to > be entered in the struct flock structure used to define the lock woul= d have > fixed this problem, along with extra flags allowing the number of loc= ks per > context to be recorded if needed." >=20 > But I'm happy with the lock context per kernel struct file as a solut= ion, > especially since that will allow locks to be sensibly passed to a for= ked > process. >=20 > Another next step would be an asynchronous blocking lock... Yes, please :-) Volker --=20 SerNet GmbH, Bahnhofsallee 1b, 37081 G=F6ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G=F6ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt@sernet.de