svn commit: r218063 - projects/graid/head/sys/geom/raid
Alexander Motin
mav at FreeBSD.org
Sat Jan 29 09:42:31 UTC 2011
Author: mav
Date: Sat Jan 29 09:42:31 2011
New Revision: 218063
URL: http://svn.freebsd.org/changeset/base/218063
Log:
Plug BIOs leak in RAID0.
Add basic error handling.
Modified:
projects/graid/head/sys/geom/raid/tr_raid0.c
Modified: projects/graid/head/sys/geom/raid/tr_raid0.c
==============================================================================
--- projects/graid/head/sys/geom/raid/tr_raid0.c Sat Jan 29 09:17:36 2011 (r218062)
+++ projects/graid/head/sys/geom/raid/tr_raid0.c Sat Jan 29 09:42:31 2011 (r218063)
@@ -334,6 +334,9 @@ g_raid_tr_iodone_raid0(struct g_raid_tr_
struct bio *pbp;
pbp = bp->bio_parent;
+ if (pbp->bio_error == 0)
+ pbp->bio_error = bp->bio_error;
+ g_destroy_bio(bp);
pbp->bio_inbed++;
if (pbp->bio_children == pbp->bio_inbed) {
pbp->bio_completed = pbp->bio_length;
More information about the svn-src-projects
mailing list