From owner-freebsd-current@FreeBSD.ORG Thu May 13 13:22:11 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1F0CB16A4CE; Thu, 13 May 2004 13:22:11 -0700 (PDT) Received: from localhost (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i4DKM9Fs064393; Thu, 13 May 2004 16:22:10 -0400 (EDT) (envelope-from green@green.homeunix.org) Message-Id: <200405132022.i4DKM9Fs064393@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Don Lewis In-Reply-To: Message from Don Lewis <200405131200.i4DC0T7E005837@gw.catspoiler.org> From: Brian Fundakowski Feldman Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 13 May 2004 16:22:09 -0400 Sender: green@green.homeunix.org cc: current@FreeBSD.org Subject: Re: fifo / named pipe patch testers wanted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 20:22:11 -0000 Don Lewis wrote: > Using the vnode mutex in fifo_open() causes lock order problems when > combined with some of the network stack locking changes that are in > progress. The patch below modifies fifo_open() to use a private mutex > in place of the vnode mutex. There is also some minor optimization of a > couple of calls to fifo_cleanup(). This patch has passed my torture > testing, but it could probably use some more testing by anyone who > heavily uses named pipes, especially with select(), kqueue(), and SIGIO. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Major, major obstacles for fine-grained network stack locking changes in progress :-( This barely scratches the surface of what seems to need to be fixed. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\