diff options
| author | Bruce Evans <bde@FreeBSD.org> | 2018-12-09 15:34:20 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 2018-12-09 15:34:20 +0000 |
| commit | dac6a0d559271be959ba2fbf10693e1fce36a7c6 (patch) | |
| tree | 28371ffe6215310884b1cf74278e3187c33e2f69 /sys/dev/md | |
| parent | 25b4f9ad69e65a688f77df35062c81ac65a71f8d (diff) | |
Notes
Diffstat (limited to 'sys/dev/md')
| -rw-r--r-- | sys/dev/md/md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 2209c6680be5c..de5cde68a7df0 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -1241,10 +1241,10 @@ md_kthread(void *arg) if (error != -1) { bp->bio_completed = bp->bio_length; - if ((bp->bio_cmd == BIO_READ) || (bp->bio_cmd == BIO_WRITE)) - devstat_end_transaction_bio(sc->devstat, bp); g_io_deliver(bp, error); } + if (bp->bio_cmd == BIO_READ || bp->bio_cmd == BIO_WRITE) + devstat_end_transaction_bio(sc->devstat, bp); } } |
