summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-12-13 12:57:21 +0000
committerpjd <pjd@FreeBSD.org>2004-12-13 12:57:21 +0000
commit77ebddb33ca8213d08bdec405f938710cb346700 (patch)
treeac9d083cb046e30877135f490bf2d09ab7c62d99 /sys/kern/subr_disk.c
parent8c9a4071f72fa8ec7410d2ec8d17d6bf845b1842 (diff)
downloadFreeBSD-src-77ebddb33ca8213d08bdec405f938710cb346700.zip
FreeBSD-src-77ebddb33ca8213d08bdec405f938710cb346700.tar.gz
Add bioq_insert_head() function.
OK'd by: phk
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index fcd0c9d..9d1ef07 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)
{
OpenPOWER on IntegriCloud