Date: Mon, 19 Sep 2016 17:46:15 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r305988 - in head/sys: geom sys Message-ID: <201609191746.u8JHkFKI071354@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Mon Sep 19 17:46:15 2016 New Revision: 305988 URL: https://svnweb.freebsd.org/changeset/base/305988 Log: Remove unused bio_taskqueue(). MFC after: 1 month Modified: head/sys/geom/geom_io.c head/sys/sys/bio.h Modified: head/sys/geom/geom_io.c ============================================================================== --- head/sys/geom/geom_io.c Mon Sep 19 17:31:05 2016 (r305987) +++ head/sys/geom/geom_io.c Mon Sep 19 17:46:15 2016 (r305988) @@ -884,26 +884,6 @@ g_io_schedule_down(struct thread *tp __u } 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) { struct bio *bp; Modified: head/sys/sys/bio.h ============================================================================== --- head/sys/sys/bio.h Mon Sep 19 17:31:05 2016 (r305987) +++ head/sys/sys/bio.h Mon Sep 19 17:46:15 2016 (r305988) @@ -151,8 +151,6 @@ void bioq_insert_head(struct bio_queue_h 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609191746.u8JHkFKI071354>