Date: Tue, 26 Mar 2013 05:42:13 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r248720 - in head/sys/geom: gate nop raid Message-ID: <201303260542.r2Q5gDgd025975@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue Mar 26 05:42:12 2013 New Revision: 248720 URL: http://svnweb.freebsd.org/changeset/base/248720 Log: Remove extra bio_data and bio_length copying to child request after calling g_clone_bio(), that already copied them. Modified: head/sys/geom/gate/g_gate.c head/sys/geom/nop/g_nop.c head/sys/geom/raid/tr_raid1e.c Modified: head/sys/geom/gate/g_gate.c ============================================================================== --- head/sys/geom/gate/g_gate.c Tue Mar 26 05:31:08 2013 (r248719) +++ head/sys/geom/gate/g_gate.c Tue Mar 26 05:42:12 2013 (r248720) @@ -245,8 +245,6 @@ g_gate_start(struct bio *pbp) } cbp->bio_done = g_gate_done; cbp->bio_offset = pbp->bio_offset + sc->sc_readoffset; - cbp->bio_data = pbp->bio_data; - cbp->bio_length = pbp->bio_length; cbp->bio_to = sc->sc_readcons->provider; g_io_request(cbp, sc->sc_readcons); return; Modified: head/sys/geom/nop/g_nop.c ============================================================================== --- head/sys/geom/nop/g_nop.c Tue Mar 26 05:31:08 2013 (r248719) +++ head/sys/geom/nop/g_nop.c Tue Mar 26 05:42:12 2013 (r248720) @@ -136,8 +136,6 @@ g_nop_start(struct bio *bp) } cbp->bio_done = g_std_done; cbp->bio_offset = bp->bio_offset + sc->sc_offset; - cbp->bio_data = bp->bio_data; - cbp->bio_length = bp->bio_length; pp = LIST_FIRST(&gp->provider); KASSERT(pp != NULL, ("NULL pp")); cbp->bio_to = pp; Modified: head/sys/geom/raid/tr_raid1e.c ============================================================================== --- head/sys/geom/raid/tr_raid1e.c Tue Mar 26 05:31:08 2013 (r248719) +++ head/sys/geom/raid/tr_raid1e.c Tue Mar 26 05:42:12 2013 (r248720) @@ -1076,8 +1076,6 @@ rebuild_round_done: offset += vol->v_strip_size; } cbp->bio_offset = offset + start; - cbp->bio_length = bp->bio_length; - cbp->bio_data = bp->bio_data; cbp->bio_cmd = BIO_WRITE; cbp->bio_cflags = G_RAID_BIO_FLAG_REMAP; cbp->bio_caller2 = (void *)mask;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303260542.r2Q5gDgd025975>