[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <C1087240-F47E-4975-849C-917FBBB9B00C@lightnvm.io>
Date: Wed, 3 May 2017 08:42:59 +0200
From: Javier González <jg@...htnvm.io>
To: NeilBrown <neilb@...e.com>
Cc: Jens Axboe <axboe@...nel.dk>, linux-block@...r.kernel.org,
Ming Lei <tom.leiming@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 09/13] lightnvm/pblk-read: use bio_clone_fast()
> On 2 May 2017, at 23.51, NeilBrown <neilb@...e.com> wrote:
>
>>
>> Hi Neil,
>>
>> Looks good. Thanks for fixing this. I did not know that bio_clone_bioset
>> was not supposed to be used on drivers.
>
> Prior to my patchset, using bio_clone_bioset() wasn't wrong in drivers,
> though it was a waste when bio_clone_fast() would to just as well as is
> more efficient.
> After my patchset, using it can be problematic. I'm wondering what I
> should do to encourage those problems to be more visible so that if
> people to us it, they'll get a warning or something.
>
> Thanks,
> NeilBrown
>
Thanks for the explanation Neil. In my opinion a comment on top of
bio_clone_bioset() would be hellful, as Ming suggested. But a warning
might make sense too.
Javier
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists