[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120518161608.GF19388@google.com>
Date: Fri, 18 May 2012 09:16:08 -0700
From: Tejun Heo <tj@...nel.org>
To: koverstreet@...gle.com
Cc: linux-bcache@...r.kernel.org, linux-kernel@...r.kernel.org,
dm-devel@...hat.com, linux-fsdevel@...r.kernel.org,
axboe@...nel.dk, agk@...hat.com, neilb@...e.de
Subject: Re: [PATCH 06/13] block: Add bio_reset()
Hello,
On Thu, May 17, 2012 at 10:59:53PM -0400, koverstreet@...gle.com wrote:
> From: Kent Overstreet <koverstreet@...gle.com>
>
> Reusing bios is something that's been highly frowned upon in the past,
> but driver code keeps doing it anyways. If it's going to happen anyways,
> we should provide a generic method.
>
> This'll help with getting rid of bi_destructor.
It would be nice to explain a bit why this helps bi_destructor
removal.
> +#define BIO_RESET_OFFSET offsetof(struct bio, bi_max_vecs)
Maybe better named BIO_RESET_BYTES? As offset tends to indicate the
start of a region.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists