From owner-svn-src-head@FreeBSD.ORG Thu Nov 27 16:47:26 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 171261065673; Thu, 27 Nov 2008 16:47:26 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 084F88FC14; Thu, 27 Nov 2008 16:47:26 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mARGlPbo092183; Thu, 27 Nov 2008 16:47:25 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mARGlP0B092182; Thu, 27 Nov 2008 16:47:25 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200811271647.mARGlP0B092182@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 27 Nov 2008 16:47:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185373 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2008 16:47:26 -0000 Author: kib Date: Thu Nov 27 16:47:25 2008 New Revision: 185373 URL: http://svn.freebsd.org/changeset/base/185373 Log: Explicitely note that destroy_dev() sleeps. Requested by: ed (some time ago), Jaakko Heinonen Modified: head/sys/kern/kern_conf.c Modified: head/sys/kern/kern_conf.c ============================================================================== --- head/sys/kern/kern_conf.c Thu Nov 27 16:41:46 2008 (r185372) +++ head/sys/kern/kern_conf.c Thu Nov 27 16:47:25 2008 (r185373) @@ -862,6 +862,7 @@ void destroy_dev(struct cdev *dev) { + WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "destroy_dev"); dev_lock(); destroy_devl(dev); dev_unlock_and_free();