Further rate limit the root wait status, it will be printed once per

root_mount_rel() wakeup.
This commit is contained in:
Andrew Thompson 2009-03-30 05:57:55 +00:00
parent 0b5af5520d
commit 46b70f07bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190540

View File

@ -1391,6 +1391,8 @@ static void
root_mount_prepare(void)
{
struct root_hold_token *h;
struct timeval lastfail;
int curfail = 0;
for (;;) {
DROP_GIANT();
@ -1401,10 +1403,12 @@ root_mount_prepare(void)
mtx_unlock(&mountlist_mtx);
break;
}
printf("Root mount waiting for:");
LIST_FOREACH(h, &root_holds, list)
printf(" %s", h->who);
printf("\n");
if (ppsratecheck(&lastfail, &curfail, 1)) {
printf("Root mount waiting for:");
LIST_FOREACH(h, &root_holds, list)
printf(" %s", h->who);
printf("\n");
}
msleep(&root_holds, &mountlist_mtx, PZERO | PDROP, "roothold",
hz);
}