]> git.karo-electronics.de Git - linux-beck.git/commit
dm rq: replace 'bio->bi_vcnt == 1' with !bio_multiple_segments
authorMing Lei <tom.leiming@gmail.com>
Fri, 11 Nov 2016 12:05:36 +0000 (20:05 +0800)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Nov 2016 14:51:57 +0000 (09:51 -0500)
commit4f9c74c6043891d415730bcb153c579be35c352f
treeede04ea1835185c5e4b72ef58cb7477b2432e49a
parentd15bb3a6467e102e60d954aadda5fb19ce6fd8ec
dm rq: replace 'bio->bi_vcnt == 1' with !bio_multiple_segments

Avoid accessing .bi_vcnt directly, because the bio can be split from
block layer and .bi_vcnt should never have been used here.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-rq.c