From owner-freebsd-arch Fri Jan 3 10: 5:19 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5F9637B401; Fri, 3 Jan 2003 10:05:17 -0800 (PST) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 399E443EC5; Fri, 3 Jan 2003 10:05:17 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.6/8.12.6) with ESMTP id h03I5GYM064164; Fri, 3 Jan 2003 10:05:17 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.6/8.12.6/Submit) id h03I5Gt8064163; Fri, 3 Jan 2003 10:05:16 -0800 (PST) Date: Fri, 3 Jan 2003 10:05:16 -0800 (PST) From: Matthew Dillon Message-Id: <200301031805.h03I5Gt8064163@apollo.backplane.com> To: Alfred Perlstein Cc: arch@FreeBSD.ORG, smp@FreeBSD.ORG, jhb@FreeBSD.ORG, jake@FreeBSD.ORG, tanimura@FreeBSD.ORG, alc@FreeBSD.ORG Subject: Re: Need help fixing lock ordering with filedesc, proc and pipe. References: <20030103030805.GS26140@elvis.mu.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hmm. There seem to be multiple issues here but would defering the psigio also be a workable solution? That is, simply add a flag to the filedesc and return and the caller (or his caller) is responsible for checking the flag and calling psigio in a more controlled situation. This way sigio can be initiated deep in the code without any worries. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message