blk-merge: warn if figured out segment number is bigger than nr_phys_segments
authorMing Lei <ming.lei@canonical.com>
Tue, 24 Nov 2015 02:35:31 +0000 (10:35 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 24 Nov 2015 03:16:55 +0000 (20:16 -0700)
commit12e57f59ca3344a588531f68eeede45666e8a6e0
treeab7fae19d98f36118ba64fd12eef25a23c47c65f
parent02e707424c2eadbcda68cd38876c9f4434ca8e1a
blk-merge: warn if figured out segment number is bigger than nr_phys_segments

We had seen lots of reports of this kind issue, so add one
warnning in blk-merge, then it can be triggered easily and
avoid to depend on warning/bug from drivers.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c