diff options
author | phk <phk@FreeBSD.org> | 2004-10-29 11:09:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-29 11:09:21 +0000 |
commit | 0e582870f7fc13587d7a85299a21c6b35a1408b4 (patch) | |
tree | 142f3654c037779c4d4b45186e9819e5525624bc | |
parent | ac49cb1cad5635cb3e69d23aa5d962b0961a10ab (diff) | |
download | FreeBSD-src-0e582870f7fc13587d7a85299a21c6b35a1408b4.zip FreeBSD-src-0e582870f7fc13587d7a85299a21c6b35a1408b4.tar.gz |
No point in setting si_bsize_phys anymore, nobody reads it.
Use bioq_takefirst().
-rw-r--r-- | sys/dev/mcd/mcd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 4f09744..0af98c8 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -257,8 +257,6 @@ mcdopen(struct cdev *dev, int flags, int fmt, struct thread *td) return (ENXIO); } - dev->si_bsize_phys = sc->data.blksize; - sc->data.openflags = 1; sc->data.partflags |= MCDREADRAW; sc->data.flags |= MCDVALID; @@ -347,11 +345,10 @@ mcd_start(struct mcd_softc *sc) return; } - bp = bioq_first(&sc->data.head); + bp = bioq_takefirst(&sc->data.head); if (bp != 0) { /* block found to process, dequeue */ /*MCD_TRACE("mcd_start: found block bp=0x%x\n",bp,0,0,0);*/ - bioq_remove(&sc->data.head, bp); sc->data.flags |= MCDMBXBSY; splx(s); } else { |