diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-01 15:06:26 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-01 15:06:26 +0000 |
commit | 891619a66d5e01e5d5db6a11cfd7f26c815338e3 (patch) | |
tree | f08dda1f60d395e9bc94bf2fd1921768bf958c6d /sys/dev/pst/pst-raid.c | |
parent | 29f3f095a624492078f7578be83d684fc32fb2a9 (diff) | |
download | src-891619a66d5e01e5d5db6a11cfd7f26c815338e3.tar.gz src-891619a66d5e01e5d5db6a11cfd7f26c815338e3.zip |
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.
Notes
Notes:
svn path=/head/; revision=112946
Diffstat (limited to 'sys/dev/pst/pst-raid.c')
-rw-r--r-- | sys/dev/pst/pst-raid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pst/pst-raid.c b/sys/dev/pst/pst-raid.c index 9e02aac6a9e5..cb6be1267993 100644 --- a/sys/dev/pst/pst-raid.c +++ b/sys/dev/pst/pst-raid.c @@ -35,7 +35,6 @@ #include <sys/bus.h> #include <sys/bio.h> #include <sys/conf.h> -#include <sys/disk.h> #include <sys/eventhandler.h> #include <sys/malloc.h> #include <sys/lock.h> @@ -48,6 +47,7 @@ #include <sys/rman.h> #include <pci/pcivar.h> #include <pci/pcireg.h> +#include <geom/geom_disk.h> #include "dev/pst/pst-iop.h" @@ -200,7 +200,7 @@ pststrategy(struct bio *bp) struct pst_softc *psc = bp->bio_disk->d_drv1; mtx_lock(&psc->mtx); - bioqdisksort(&psc->queue, bp); + bioq_disksort(&psc->queue, bp); pst_start(psc); mtx_unlock(&psc->mtx); } |