Date: Mon, 30 Mar 2009 05:57:55 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190540 - head/sys/kern Message-ID: <200903300557.n2U5vtri055299@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thompsa Date: Mon Mar 30 05:57:55 2009 New Revision: 190540 URL: http://svn.freebsd.org/changeset/base/190540 Log: Further rate limit the root wait status, it will be printed once per root_mount_rel() wakeup. Modified: head/sys/kern/vfs_mount.c Modified: head/sys/kern/vfs_mount.c ============================================================================== --- head/sys/kern/vfs_mount.c Mon Mar 30 04:42:08 2009 (r190539) +++ head/sys/kern/vfs_mount.c Mon Mar 30 05:57:55 2009 (r190540) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903300557.n2U5vtri055299>