[dm-devel] [PATCH 09/60] dm: dm.c: replace 'bio->bi_vcnt == 1' with !bio_multiple_segments
Kent Overstreet
kent.overstreet at gmail.com
Wed Nov 2 03:09:06 UTC 2016
On Mon, Oct 31, 2016 at 08:29:01AM -0700, Christoph Hellwig wrote:
> On Sat, Oct 29, 2016 at 04:08:08PM +0800, Ming Lei wrote:
> > Avoid to access .bi_vcnt directly, because it may be not what
> > the driver expected any more after supporting multipage bvec.
> >
> > Signed-off-by: Ming Lei <tom.leiming at gmail.com>
>
> It would be really nice to have a comment in the code why it's
> even checking for multiple segments.
Or ideally refactor the code to not care about multiple segments at all.
More information about the dm-devel
mailing list