diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2011-01-25 14:00:30 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2011-01-25 14:00:30 +0000 |
commit | 96410b95758bde268b864d881f94604df3956c7a (patch) | |
tree | 4ccf48ba8abc2882ea592fc930876fa350339487 /sys/dev/md | |
parent | 9283f726be76f30a74230d8535d8eceeaacd2547 (diff) | |
download | src-96410b95758bde268b864d881f94604df3956c7a.tar.gz src-96410b95758bde268b864d881f94604df3956c7a.zip |
Bio shall not be accessed after g_io_deliver(9).
Reported and tested by: pho
Reviewed by: ae, phk
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=217823
Diffstat (limited to 'sys/dev/md')
-rw-r--r-- | sys/dev/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 835ec1a25c7b..c04f2a753fda 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -731,9 +731,9 @@ md_kthread(void *arg) if (error != -1) { bp->bio_completed = bp->bio_length; - g_io_deliver(bp, error); if ((bp->bio_cmd == BIO_READ) || (bp->bio_cmd == BIO_WRITE)) devstat_end_transaction_bio(sc->devstat, bp); + g_io_deliver(bp, error); } } } |