Lines 252-258
g_disk_done(struct bio *bp)
Link Here
|
252 |
if (bp2->bio_error == 0) |
252 |
if (bp2->bio_error == 0) |
253 |
bp2->bio_error = bp->bio_error; |
253 |
bp2->bio_error = bp->bio_error; |
254 |
bp2->bio_completed += bp->bio_completed; |
254 |
bp2->bio_completed += bp->bio_completed; |
255 |
if ((bp->bio_cmd & (BIO_READ|BIO_WRITE|BIO_DELETE)) != 0 && |
255 |
if ((bp->bio_cmd & (BIO_READ|BIO_WRITE|BIO_DELETE|BIO_FLUSH)) != 0 && |
256 |
(sc = bp2->bio_to->geom->softc) != NULL && |
256 |
(sc = bp2->bio_to->geom->softc) != NULL && |
257 |
(dp = sc->dp) != NULL) { |
257 |
(dp = sc->dp) != NULL) { |
258 |
devstat_end_transaction_bio(dp->d_devstat, bp); |
258 |
devstat_end_transaction_bio(dp->d_devstat, bp); |
Lines 403-408
g_disk_start(struct bio *bp)
Link Here
|
403 |
} |
403 |
} |
404 |
bp2->bio_done = g_disk_done; |
404 |
bp2->bio_done = g_disk_done; |
405 |
bp2->bio_disk = dp; |
405 |
bp2->bio_disk = dp; |
|
|
406 |
devstat_start_transaction_bio(dp->d_devstat, bp2); |
406 |
g_disk_lock_giant(dp); |
407 |
g_disk_lock_giant(dp); |
407 |
dp->d_strategy(bp2); |
408 |
dp->d_strategy(bp2); |
408 |
g_disk_unlock_giant(dp); |
409 |
g_disk_unlock_giant(dp); |