summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/fla/fla.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-01 15:06:26 +0000
committerphk <phk@FreeBSD.org>2003-04-01 15:06:26 +0000
commitc235e25328c6cf4b9091f38d9c18db15764df594 (patch)
treef08dda1f60d395e9bc94bf2fd1921768bf958c6d /sys/contrib/dev/fla/fla.c
parent98acc8a3d79206dbf51e83ae8573fa89e54645b6 (diff)
downloadFreeBSD-src-c235e25328c6cf4b9091f38d9c18db15764df594.zip
FreeBSD-src-c235e25328c6cf4b9091f38d9c18db15764df594.tar.gz
Use bioq_flush() to drain a bio queue with a specific error code.
Retain the mistake of not updating the devstat API for now. Spell bioq_disksort() consistently with the remaining bioq_*(). #include <geom/geom_disk.h> where this is more appropriate.
Diffstat (limited to 'sys/contrib/dev/fla/fla.c')
-rw-r--r--sys/contrib/dev/fla/fla.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c
index 8a01341..789db78 100644
--- a/sys/contrib/dev/fla/fla.c
+++ b/sys/contrib/dev/fla/fla.c
@@ -17,9 +17,9 @@
#include <sys/bio.h>
#include <sys/malloc.h>
#include <sys/conf.h>
-#include <sys/disk.h>
#include <sys/module.h>
#include <machine/resource.h>
+#include <geom/geom_disk.h>
#include <vm/vm.h>
#include <vm/pmap.h>
@@ -133,7 +133,7 @@ flastrategy(struct bio *bp)
sc = bp->bio_disk->d_drv1;
- bioqdisksort(&sc->bio_queue, bp);
+ bioq_disksort(&sc->bio_queue, bp);
if (sc->busy) {
return;
OpenPOWER on IntegriCloud