Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261158AbVEBJPd (ORCPT ); Mon, 2 May 2005 05:15:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261162AbVEBJPc (ORCPT ); Mon, 2 May 2005 05:15:32 -0400 Received: from mtagate3.de.ibm.com ([195.212.29.152]:21443 "EHLO mtagate3.de.ibm.com") by vger.kernel.org with ESMTP id S261158AbVEBJP2 (ORCPT ); Mon, 2 May 2005 05:15:28 -0400 Date: Mon, 2 May 2005 11:15:24 +0200 From: Heiko Carstens To: linux-kernel@vger.kernel.org, Andy Adamson , Matthew Wilcox Cc: Martin Schwidefsky Subject: fcntl: F_SETLEASE/F_RDLCK question Message-ID: <20050502091524.GA6457@osiris.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.8i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 659 Lines: 19 Hi, the semantics of fnctl used together with F_SETLEASE and argument F_RDLCK have been changed with bk changeset 1.1938.185.141 (sometime between 2.6.9 and 2.6.10). Since then it's only possible to get a read lease when the file in question does not have _any_ writers. This is at least inconsistent with the man page of fcntl and looks pretty much like this is a bug in the kernel. Any comments? Thanks, Heiko - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/