From bbdd6614bd6bccd5efd63e5ba0f98ec809402faa Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Mon, 19 Sep 2016 17:46:15 +0000 Subject: [PATCH] Remove unused bio_taskqueue(). MFC after: 1 month --- sys/geom/geom_io.c | 20 -------------------- sys/sys/bio.h | 2 -- 2 files changed, 22 deletions(-) diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index 401c20f2428..d8f9302848f 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -883,26 +883,6 @@ g_io_schedule_down(struct thread *tp __unused) } } -void -bio_taskqueue(struct bio *bp, bio_task_t *func, void *arg) -{ - bp->bio_task = func; - bp->bio_task_arg = arg; - /* - * The taskqueue is actually just a second queue off the "up" - * queue, so we use the same lock. - */ - g_bioq_lock(&g_bio_run_up); - KASSERT(!(bp->bio_flags & BIO_ONQUEUE), - ("Bio already on queue bp=%p target taskq", bp)); - bp->bio_flags |= BIO_ONQUEUE; - TAILQ_INSERT_TAIL(&g_bio_run_task.bio_queue, bp, bio_queue); - g_bio_run_task.bio_queue_length++; - wakeup(&g_wait_up); - g_bioq_unlock(&g_bio_run_up); -} - - void g_io_schedule_up(struct thread *tp __unused) { diff --git a/sys/sys/bio.h b/sys/sys/bio.h index 01149dd64df..8821fef59bb 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.h @@ -151,8 +151,6 @@ 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); -void bio_taskqueue(struct bio *bp, bio_task_t *fund, void *arg); - int physio(struct cdev *dev, struct uio *uio, int ioflag); #define physread physio #define physwrite physio