diff options
author | Ming Lei <tom.leiming@gmail.com> | 2016-11-11 13:05:36 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-11-21 15:51:57 +0100 |
commit | 4f9c74c6043891d415730bcb153c579be35c352f (patch) | |
tree | ede04ea1835185c5e4b72ef58cb7477b2432e49a /lib/lcm.c | |
parent | dm rq: fix a race condition in rq_completed() (diff) | |
download | linux-4f9c74c6043891d415730bcb153c579be35c352f.tar.xz linux-4f9c74c6043891d415730bcb153c579be35c352f.zip |
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>
Diffstat (limited to 'lib/lcm.c')
0 files changed, 0 insertions, 0 deletions