aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-04-22 06:53:20 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-04-22 06:53:20 +0000
commit29f88f470e84d04ce309d44a1666bbd268b51cd3 (patch)
treed59411764ca8a1adbe2d8ed4697eb5b37cc2f8bd /sys
parentd435ac4e9161a5d439eb03f177bafb8761e65867 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_disklabel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index 8a7b70ee3408..176dafee082b 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -50,6 +50,7 @@
#include <sys/syslog.h>
#include <machine/atomic.h>
+#ifdef notquite
/*
* Mutex to use when delaying niced I/O bound processes in bioqdisksort().
*/
@@ -61,6 +62,7 @@ dksort_init(void)
mtx_init(&dksort_mtx, "dksort", NULL, MTX_DEF);
}
SYSINIT(dksort, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, dksort_init, NULL)
+#endif
/*
* Seek sort for disks.
@@ -85,6 +87,8 @@ bioqdisksort(bioq, bp)
struct bio *bq;
struct bio *bn;
struct bio *be;
+
+#ifdef notquite
struct thread *td = curthread;
if (td && td->td_ksegrp->kg_nice > 0) {
@@ -98,6 +102,7 @@ bioqdisksort(bioq, bp)
td->td_ksegrp->kg_nice);
}
}
+#endif
if (!atomic_cmpset_int(&bioq->busy, 0, 1))
panic("Recursing in bioqdisksort()");
be = TAILQ_LAST(&bioq->queue, bio_queue);