diff options
-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); |