From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Lokier Subject: Re: file leases Date: Tue, 21 Sep 2004 13:44:59 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040921124459.GC1001@mail.shareable.org> References: <20040921084008.GG28786@mail.shareable.org> <20040921121629.319331BBAB@citi.umich.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Stephen Rothwell , linux-fsdevel@vger.kernel.org Return-path: Received: from mail.shareable.org ([81.29.64.88]:61908 "EHLO mail.shareable.org") by vger.kernel.org with ESMTP id S267645AbUIUMpN (ORCPT ); Tue, 21 Sep 2004 08:45:13 -0400 To: "William A.(Andy) Adamson" Content-Disposition: inline In-Reply-To: <20040921121629.319331BBAB@citi.umich.edu> List-Id: linux-fsdevel.vger.kernel.org William A.(Andy) Adamson wrote: > > Quite, but the client is a Windows 2000 box completely idle with > > nothing holding the file open, and a good LAN connection. > > > > If an idle client won't release oplocks quickly on request, then > > there's a problem. > > it's not a bug, it's a feature! the open from the idle windows box > is stalled at the server while the server sends break_lease messages > to all the other clients with op locks on the file. that is the > promise of op locks. Eh? There's only one client, and it's idle. Presumably it's holding an oplock. When I want to edit a file directly on the server, opening for write stalls for a long time. Presumably the lease causes Samba to send a break_lease to the _one_ client. Being an idle client that's not holding the file open, it should respond immediately to break_lease, and then Samba should let me open the file locally. That's how leases are supposed to work, but something in that whole arrangement isn't working properly. Samba is 3.0.6-r3, kernel is 2.6.8 (both gentoo versions). -- Jamie