Don't call dkunit() to find our unit number, it is in our softc.

Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
phk 2002-09-20 16:26:12 +00:00
parent c0477d28f4
commit c3d0986c83

View File

@ -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;