Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2016 11:04:06 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Warner Losh <imp@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Steven Hartland <smh@freebsd.org>
Subject:   Re: svn commit: r295707 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs dev/mmc dev/virtio/block geom geom/journal geom/mirror geom/raid geom/raid3 kern
Message-ID:  <CAOtMX2j28M9oTV3BFGkKQ8s5sX1vHBeU-_xeM4GGUBrVdzypYQ@mail.gmail.com>
In-Reply-To: <201602171716.u1HHG2c2098316@repo.freebsd.org>
References:  <201602171716.u1HHG2c2098316@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 17, 2016 at 10:16 AM, Warner Losh <imp@freebsd.org> wrote:

> Author: imp
> Date: Wed Feb 17 17:16:02 2016
> New Revision: 295707
> URL: https://svnweb.freebsd.org/changeset/base/295707
>
> Log:
>   Create an API to reset a struct bio (g_reset_bio). This is mandatory
>   for all struct bio you get back from g_{new,alloc}_bio. Temporary
>   bios that you create on the stack or elsewhere should use this before
>   first use of the bio, and between uses of the bio. At the moment, it
>   is nothing more than a wrapper around bzero, but that may change in
>   the future. The wrapper also removes one place where we encode the
>   size of struct bio in the KBI.
>
> Modified:
>   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
>   head/sys/dev/mmc/mmcsd.c
>   head/sys/dev/virtio/block/virtio_blk.c
>   head/sys/geom/geom.h
>   head/sys/geom/geom_io.c
>   head/sys/geom/journal/g_journal.c
>   head/sys/geom/mirror/g_mirror.c
>   head/sys/geom/raid/g_raid.c
>   head/sys/geom/raid3/g_raid3.c
>   head/sys/kern/kern_physio.c
>

smh noticed that while your commit message says that g_reset_bio is
mandatory after g_{new,alloc}_bio, your diff only replaced existing calls
to bzero.  You didn't insert g_reset_bio calls after all g_alloc_bio calls,
for example in vdev_geom_io_start.  Do you intend to follow up this change
with a g_reset_bio everywhere that g_alloc_bio is called, or did you mean
that g_reset_bio is optional after all bios returned by g_{new,alloc}_bio?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2j28M9oTV3BFGkKQ8s5sX1vHBeU-_xeM4GGUBrVdzypYQ>