Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:57084 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752081AbbL1PxZ (ORCPT ); Mon, 28 Dec 2015 10:53:25 -0500 Date: Mon, 28 Dec 2015 10:53:21 -0500 (EST) From: Benjamin Coddington To: Trond Myklebust cc: Christoph Hellwig , "J. Bruce Fields" , Jeff Layton , Anna Schumaker , Linux NFS Mailing List Subject: Re: [PATCH v2 02/10] NFS: Move the flock open mode check into nfs_flock() In-Reply-To: Message-ID: References: <20151207184036.GA28959@infradead.org> <20151207192222.GA7938@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-nfs-owner@vger.kernel.org List-ID: > On Mon, Dec 7, 2015 at 2:24 PM, Benjamin Coddington wrote: > > On Mon, 7 Dec 2015, Christoph Hellwig wrote: > > > >> On Mon, Dec 07, 2015 at 02:13:47PM -0500, Benjamin Coddington wrote: > >> > I can fixup the comment for clarity as I just moved this chunk over. > >> > > >> > I'm not aware that flock() has ever had this check, but posix locks requires > >> > it. My understanding is that since NFS may simulate flock() with posix > >> > locking, the check is necessary for NFS. > >> > >> Ah, right. Maybe that's what should be in the comment here.. > > > > Yes, good idea. That's where someone is going to look when they investigate > > why their application breaks on NFS. > > > > Should I expect a resend? I'll do this in a v3 of this shortly. Ben