diff options
author | Ming Lei <ming.lei@canonical.com> | 2014-09-02 23:02:59 +0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-02 10:25:12 -0600 |
commit | 0738854939e6ec9b9111a8cfc0ca1dfa3cff6b2e (patch) | |
tree | 617923e115af85896590d7ff7ba96baf16f4399f /REPORTING-BUGS | |
parent | 7505ceaf863590b24a4c0c83b64817d26e0d51e3 (diff) | |
download | lwn-0738854939e6ec9b9111a8cfc0ca1dfa3cff6b2e.tar.gz lwn-0738854939e6ec9b9111a8cfc0ca1dfa3cff6b2e.zip |
blk-merge: fix blk_recount_segments
QUEUE_FLAG_NO_SG_MERGE is set at default for blk-mq devices,
so bio->bi_phys_segment computed may be bigger than
queue_max_segments(q) for blk-mq devices, then drivers will
fail to handle the case, for example, BUG_ON() in
virtio_queue_rq() can be triggerd for virtio-blk:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1359146
This patch fixes the issue by ignoring the QUEUE_FLAG_NO_SG_MERGE
flag if the computed bio->bi_phys_segment is bigger than
queue_max_segments(q), and the regression is caused by commit
05f1dd53152173(block: add queue flag for disabling SG merging).
Reported-by: Kick In <pierre-andre.morey@canonical.com>
Tested-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions