summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-30 10:16:31 +0000
committerphk <phk@FreeBSD.org>2003-03-30 10:16:31 +0000
commitbb8188c89538d3d7a82ea0438d714333d9d1f38e (patch)
tree7101e0328469b585c2dd2fc1d37947dde3c10b30 /sys/kern
parent76f4d8a27e891cab1bbb930d63060b9db0bd7650 (diff)
downloadFreeBSD-src-bb8188c89538d3d7a82ea0438d714333d9d1f38e.zip
FreeBSD-src-bb8188c89538d3d7a82ea0438d714333d9d1f38e.tar.gz
retire the "busy" field in bioqueues, it's served it's purpose.
Diffstat (limited to 'sys/kern')
-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 3e09cca..35c2295 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;
}
OpenPOWER on IntegriCloud