Use PRI_BIO for kthreads instead of PINOD. Fixes a missed case of priority

inversion, which caused LFS to fire some assertions.

Reported by Kurt Schreiner on <current-users>.
This commit is contained in:
rmind 2007-11-10 18:53:57 +00:00
parent 6b4d0688e7
commit f499d5e662
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fss.c,v 1.36 2007/10/10 20:42:22 ad Exp $ */
/* $NetBSD: fss.c,v 1.37 2007/11/10 18:53:57 rmind Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.36 2007/10/10 20:42:22 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.37 2007/11/10 18:53:57 rmind Exp $");
#include "fss.h"
@ -415,7 +415,7 @@ fss_softc_alloc(struct fss_softc *sc)
if (sc->sc_indir_data == NULL)
return(ENOMEM);
if ((error = kthread_create(PINOD, 0, NULL, fss_bs_thread, sc,
if ((error = kthread_create(PRI_BIO, 0, NULL, fss_bs_thread, sc,
&sc->sc_bs_lwp, "fssbs%d", sc->sc_unit)) != 0)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_vfsops.c,v 1.246 2007/10/10 20:42:35 ad Exp $ */
/* $NetBSD: lfs_vfsops.c,v 1.247 2007/11/10 18:53:57 rmind Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.246 2007/10/10 20:42:35 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.247 2007/11/10 18:53:57 rmind Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@ -871,7 +871,7 @@ lfs_mountfs(struct vnode *devvp, struct mount *mp, struct lwp *l)
vput(vp);
/* Start the pagedaemon-anticipating daemon */
if (lfs_writer_daemon == 0 && kthread_create(PINOD, 0, NULL,
if (lfs_writer_daemon == 0 && kthread_create(PRI_BIO, 0, NULL,
lfs_writerd, NULL, NULL, "lfs_writer") != 0)
panic("fork lfs_writer");