From: Volker Lendecke Subject: Re: [PATCH] locks: breaking read lease should not block read open Date: Fri, 10 Jun 2011 09:56:49 +0200 Message-ID: References: <20110609231606.GB22215@fieldses.org> Reply-To: Volker.Lendecke@SerNet.DE Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, samba-technical@lists.samba.org, Casey Bodley To: "J. Bruce Fields" Return-path: Date: Fri, 10 Jun 2011 09:56:49 +0200 Content-Disposition: inline In-Reply-To: <20110609231606.GB22215@fieldses.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: samba-technical-bounces@lists.samba.org Errors-To: samba-technical-bounces@lists.samba.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Jun 09, 2011 at 07:16:06PM -0400, J. Bruce Fields wrote: > The lease code behavior during the lease-breaking process is strange. > Fixing it completely would be complicated by the fact that the current > code allows a lease break to downgrade the lease instead of necessarily > removing it. >=20 > But I can't see what the point of that feature is. And googling around > and looking at the Samba code, I can't see any evidence that anyone use= s > it. Think we could just do away with removing the ability to downgrade > to satisfy a lease break? Without having looked too deeply, just let me point out that Samba here has a plain flaw. Early Linux Kernel versions that we programmed against did not properly support read only leases, so we did not implement that initially. If I remember correctly we never got around to finally do it once it became available. Eventually we will probably, as read only leases are a pretty important feature to present to CIFS clients. 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