Don't set si_bsize_phys.

Use bioq_takefirst()
This commit is contained in:
Poul-Henning Kamp 2004-10-29 11:12:16 +00:00
parent 55f499a94f
commit 7229625e6d
1 changed files with 1 additions and 4 deletions

View File

@ -378,7 +378,6 @@ acdopen(struct cdev *dev, int flags, int fmt, struct thread *td)
cdp->flags |= F_BOPEN;
else
++cdp->refcnt;
dev->si_bsize_phys = cdp->block_size;
if (!(flags & O_NONBLOCK) && acd_read_toc(cdp) && !(flags & FWRITE))
printf("acd%d: read_toc failed\n", cdp->unit);
return 0;
@ -442,7 +441,7 @@ acdstrategy(struct bio *bp)
static void
acd_start(struct acd *cdp)
{
struct bio *bp = bioq_first(&cdp->bio_queue);
struct bio *bp = bioq_takefirst(&cdp->bio_queue);
u_long lba, blocks;
int cmd;
int count;
@ -450,8 +449,6 @@ acd_start(struct acd *cdp)
if (!bp)
return;
bioq_remove(&cdp->bio_queue, bp);
/* Should reject all queued entries if media have changed. */
if (cdp->flags & F_MEDIA_CHANGED) {
biofinish(bp, NULL, EIO);