diff options
Diffstat (limited to 'sys/dev/ida/ida.c')
-rw-r--r-- | sys/dev/ida/ida.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ida/ida.c b/sys/dev/ida/ida.c index c53f2c9..c9e924e 100644 --- a/sys/dev/ida/ida.c +++ b/sys/dev/ida/ida.c @@ -404,7 +404,7 @@ ida_construct_qcb(struct ida_softc *ida) hwqcb->req.blkno = bp->b_pblkno; hwqcb->req.bcount = howmany(bp->b_bcount, DEV_BSIZE); - hwqcb->req.command = bp->b_flags & B_READ ? CMD_READ : CMD_WRITE; + hwqcb->req.command = bp->b_iocmd == BIO_READ ? CMD_READ : CMD_WRITE; STAILQ_INSERT_TAIL(&ida->qcb_queue, qcb, link.stqe); } |