Date: Tue, 1 Feb 2011 10:18:36 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r218163 - stable/8/sys/dev/md Message-ID: <201102011018.p11AIaFr068113@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Feb 1 10:18:36 2011 New Revision: 218163 URL: http://svn.freebsd.org/changeset/base/218163 Log: MFC r217823: Bio shall not be accessed after g_io_deliver(9). Modified: stable/8/sys/dev/md/md.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/dev/md/md.c ============================================================================== --- stable/8/sys/dev/md/md.c Tue Feb 1 09:27:28 2011 (r218162) +++ stable/8/sys/dev/md/md.c Tue Feb 1 10:18:36 2011 (r218163) @@ -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); } } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102011018.p11AIaFr068113>