aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-03-30 08:51:23 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-03-30 08:51:23 +0000
commitd086f85ac469dc556f850f6ed1f47c58cbe10524 (patch)
tree1258453658c2e860001261df6ebe12fa9e449e33 /sys/sys/bio.h
parentd938c3689d4dc97bfa2fc0c98fd893bc4a1979e4 (diff)
downloadsrc-d086f85ac469dc556f850f6ed1f47c58cbe10524.tar.gz
src-d086f85ac469dc556f850f6ed1f47c58cbe10524.zip
Preparation commit before I start on the bioqueue lockdown:
Collect all the bits of bioqueue handing in subr_disk.c, vfs_bio.c is big enough as it is and disksort already lives in subr_disk.c.
Notes
Notes: svn path=/head/; revision=112846
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index a923a783845d..1628e61bae33 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -114,30 +114,15 @@ struct bio_queue_head {
int busy;
};
-static __inline void bioq_insert_tail(struct bio_queue_head *head,
- struct bio *bp);
-static __inline struct bio *bioq_first(struct bio_queue_head *head);
-
-static __inline void
-bioq_insert_tail(struct bio_queue_head *head, struct bio *bp)
-{
-
- TAILQ_INSERT_TAIL(&head->queue, bp, bio_queue);
-}
-
-static __inline struct bio *
-bioq_first(struct bio_queue_head *head)
-{
-
- return (TAILQ_FIRST(&head->queue));
-}
-
void biodone(struct bio *bp);
void biofinish(struct bio *bp, struct devstat *stat, int error);
int biowait(struct bio *bp, const char *wchan);
+
void bioq_disksort(struct bio_queue_head *ap, struct bio *bp);
#define bioqdisksort(foo, bar) bioq_disksort(foo, bar)
+struct bio *bioq_first(struct bio_queue_head *head);
void bioq_init(struct bio_queue_head *head);
+void bioq_insert_tail(struct bio_queue_head *head, struct bio *bp);
void bioq_remove(struct bio_queue_head *head, struct bio *bp);
void bio_taskqueue(struct bio *bp, bio_task_t *fund, void *arg);