aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-03-30 10:16:31 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-03-30 10:16:31 +0000
commitd2a0822e9dfbc596cb4c487ac73a2410874a6edc (patch)
tree7101e0328469b585c2dd2fc1d37947dde3c10b30 /sys/kern/subr_disk.c
parent0c4b980607026c8264aca53ce26a0c8aaeec8f5f (diff)
downloadsrc-d2a0822e9dfbc596cb4c487ac73a2410874a6edc.tar.gz
src-d2a0822e9dfbc596cb4c487ac73a2410874a6edc.zip
retire the "busy" field in bioqueues, it's served it's purpose.
Notes
Notes: svn path=/head/; revision=112848
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 3e09ccabd4fc..35c2295b745e 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -128,8 +128,6 @@ bioq_disksort(bioq, bp)
struct bio *bn;
struct bio *be;
- if (!atomic_cmpset_int(&bioq->busy, 0, 1))
- panic("Recursing in bioq_disksort()");
be = TAILQ_LAST(&bioq->queue, bio_queue);
/*
* If the queue is empty or we are an
@@ -137,7 +135,6 @@ bioq_disksort(bioq, bp)
*/
if ((bq = bioq_first(bioq)) == NULL) {
bioq_insert_tail(bioq, bp);
- bioq->busy = 0;
return;
} else if (bioq->insert_point != NULL) {
@@ -166,7 +163,6 @@ bioq_disksort(bioq, bp)
if (bq == NULL) {
bioq->switch_point = bp;
bioq_insert_tail(bioq, bp);
- bioq->busy = 0;
return;
}
/*
@@ -177,7 +173,6 @@ bioq_disksort(bioq, bp)
if (bp->bio_pblkno < bq->bio_pblkno) {
bioq->switch_point = bp;
TAILQ_INSERT_BEFORE(bq, bp, bio_queue);
- bioq->busy = 0;
return;
}
} else {
@@ -190,7 +185,6 @@ bioq_disksort(bioq, bp)
*/
if (bp->bio_pblkno < bq->bio_pblkno) {
TAILQ_INSERT_BEFORE(bq, bp, bio_queue);
- bioq->busy = 0;
return;
}
}
@@ -202,7 +196,6 @@ bioq_disksort(bioq, bp)
*/
if (bp->bio_pblkno > be->bio_pblkno) {
TAILQ_INSERT_AFTER(&bioq->queue, be, bp, bio_queue);
- bioq->busy = 0;
return;
}
@@ -220,7 +213,6 @@ bioq_disksort(bioq, bp)
bq = bn;
}
TAILQ_INSERT_AFTER(&bioq->queue, bq, bp, bio_queue);
- bioq->busy = 0;
}