diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-12-13 12:57:21 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2004-12-13 12:57:21 +0000 |
commit | bf4843166f2ed50e6435a77b38a011945de0a6f6 (patch) | |
tree | ac9d083cb046e30877135f490bf2d09ab7c62d99 | |
parent | 125eb366ead57a96932658a50452e42394429cb7 (diff) |
Notes
-rw-r--r-- | sys/kern/subr_disk.c | 7 | ||||
-rw-r--r-- | sys/sys/bio.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index fcd0c9da63b0..9d1ef07d0062 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -99,6 +99,13 @@ bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error) } void +bioq_insert_head(struct bio_queue_head *head, struct bio *bp) +{ + + TAILQ_INSERT_HEAD(&head->queue, bp, bio_queue); +} + +void bioq_insert_tail(struct bio_queue_head *head, struct bio *bp) { diff --git a/sys/sys/bio.h b/sys/sys/bio.h index 52a7bf894563..cb1a5a2486a8 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.h @@ -118,6 +118,7 @@ struct bio *bioq_first(struct bio_queue_head *head); struct bio *bioq_takefirst(struct bio_queue_head *head); void bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error); void bioq_init(struct bio_queue_head *head); +void bioq_insert_head(struct bio_queue_head *head, struct bio *bp); void bioq_insert_tail(struct bio_queue_head *head, struct bio *bp); void bioq_remove(struct bio_queue_head *head, struct bio *bp); |