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
This commit is contained in:
Edward Tomasz Napierala 2015-10-09 12:11:37 +00:00
parent b75612f8e7
commit 8d90e66066
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289064
2 changed files with 0 additions and 19 deletions

View File

@ -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)
{

View File

@ -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);