[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <575195CD.6090607@kernel.dk>
Date: Fri, 3 Jun 2016 08:35:57 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Baolin Wang <baolin.wang@...aro.org>, agk@...hat.com,
snitzer@...hat.com, dm-devel@...hat.com,
herbert@...dor.apana.org.au, davem@...emloft.net
Cc: ebiggers3@...il.com, js1304@...il.com, tadeusz.struk@...el.com,
smueller@...onox.de, standby24x7@...il.com, shli@...nel.org,
dan.j.williams@...el.com, martin.petersen@...cle.com,
sagig@...lanox.com, kent.overstreet@...il.com,
keith.busch@...el.com, tj@...nel.org, ming.lei@...onical.com,
broonie@...nel.org, arnd@...db.de, linux-crypto@...r.kernel.org,
linux-block@...r.kernel.org, linux-raid@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC v2 1/3] block: Introduce blk_bio_map_sg() to map one bio
On 05/27/2016 05:11 AM, Baolin Wang wrote:
> In dm-crypt, it need to map one bio to scatterlist for improving the
> hardware engine encryption efficiency. Thus this patch introduces the
> blk_bio_map_sg() function to map one bio with scatterlists.
>
> For avoiding the duplicated code in __blk_bios_map_sg() function, add
> one parameter to distinguish bio map or request map.
Just detach the bio in blk_bio_map_sg() instead of adding a separate
case (and argument) for it in __blk_bios_map_sg().
--
Jens Axboe
Powered by blists - more mailing lists