Don't call dkunit() to find our unit number, it is in our softc.
Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
c0477d28f4
commit
c3d0986c83
@ -209,7 +209,7 @@ flastrategy(struct bio *bp)
|
||||
|
||||
devstat_start_transaction(&sc->stats);
|
||||
bp->bio_resid = bp->bio_bcount;
|
||||
unit = dkunit(bp->bio_dev);
|
||||
unit = sc->unit;
|
||||
|
||||
if (bp->bio_cmd == BIO_DELETE)
|
||||
what = DOC2K_ERASE;
|
||||
|
Loading…
Reference in New Issue
Block a user