Return-Path: Date: Mon, 7 Dec 2015 11:22:22 -0800 From: Christoph Hellwig To: Benjamin Coddington Cc: "J. Bruce Fields" , Jeff Layton , Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org Subject: Re: [PATCH v2 02/10] NFS: Move the flock open mode check into nfs_flock() Message-ID: <20151207192222.GA7938@infradead.org> References: <20151207184036.GA28959@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-ID: 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..