From: One Thousand Gnomes Subject: Re: [GIT PULL] please pull file-locking related changes for v3.20 Date: Thu, 26 Feb 2015 11:00:46 +0000 Message-ID: <20150226110046.4bd919ad@lxorguk.ukuu.org.uk> References: <20150209055540.2f2a3689@tlielax.poochiereds.net> <20150216133200.GB3270@node.dhcp.inet.fi> <20150216090054.62455465@tlielax.poochiereds.net> <20150217190844.GC27900@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "J. Bruce Fields" , Jeff Layton , "Kirill A. Shutemov" , linux-fsdevel , Linux Kernel Mailing List , Christoph Hellwig , Dave Chinner , Sasha Levin To: Linus Torvalds Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, 17 Feb 2015 11:13:39 -0800 Linus Torvalds wrote: > On Tue, Feb 17, 2015 at 11:08 AM, J. Bruce Fields wrote: > > > > I agree that it's weird, but I think it's what we're stuck with. > > And if by "weird" you mean "flock is really not a well-defined or sane > interface", I'll agree with you. > > That said, I'm not at all sure about the "we're stuck with it". We can > improve the semantics without anybody noticing, because it's not like > anybody could *depend* on the weaker semantics - they needed > particular races and timings to hit anyway. The BSD implementation does not documented such a race, or indeed appear to have one. That implies that nothing using flock should have this problem. Alan