From owner-svn-src-head@freebsd.org Fri Oct 9 12:11:38 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 757219D1852; Fri, 9 Oct 2015 12:11:38 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 42D7D811; Fri, 9 Oct 2015 12:11:38 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t99CBbcs043189; Fri, 9 Oct 2015 12:11:37 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t99CBbwZ043187; Fri, 9 Oct 2015 12:11:37 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201510091211.t99CBbwZ043187@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Fri, 9 Oct 2015 12:11:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289064 - in head/sys: kern sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 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: Fri, 09 Oct 2015 12:11:38 -0000 Author: trasz Date: Fri Oct 9 12:11:37 2015 New Revision: 289064 URL: https://svnweb.freebsd.org/changeset/base/289064 Log: Remove root_mount_wait(). It's not used anywhere. Reviewed by: bapt@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3787 Modified: head/sys/kern/vfs_mountroot.c head/sys/sys/systm.h Modified: head/sys/kern/vfs_mountroot.c ============================================================================== --- head/sys/kern/vfs_mountroot.c Fri Oct 9 11:46:27 2015 (r289063) +++ head/sys/kern/vfs_mountroot.c Fri Oct 9 12:11:37 2015 (r289064) @@ -166,24 +166,6 @@ root_mounted(void) return (root_mount_complete); } -void -root_mount_wait(void) -{ - - /* - * Panic on an obvious deadlock - the function can't be called from - * a thread which is doing the whole SYSINIT stuff. - */ - KASSERT(curthread->td_proc->p_pid != 0, - ("root_mount_wait: cannot be called from the swapper thread")); - mtx_lock(&root_holds_mtx); - while (!root_mount_complete) { - msleep(&root_mount_complete, &root_holds_mtx, PZERO, "rootwait", - hz); - } - mtx_unlock(&root_holds_mtx); -} - static void set_rootvnode(void) { Modified: head/sys/sys/systm.h ============================================================================== --- head/sys/sys/systm.h Fri Oct 9 11:46:27 2015 (r289063) +++ head/sys/sys/systm.h Fri Oct 9 12:11:37 2015 (r289064) @@ -412,7 +412,6 @@ struct root_hold_token; struct root_hold_token *root_mount_hold(const char *identifier); void root_mount_rel(struct root_hold_token *h); -void root_mount_wait(void); int root_mounted(void);