Skip to content
Commit 32eef964 authored by Jens Axboe's avatar Jens Axboe
Browse files

blk_hw_contig_segment(): bad segment size checks



Two bugs in there:

- The virt oversize check should use the current bio hardware back
  size and the next bio front size, not the same bio. Spotted by
  Neil Brown.

- The segment size check should add hw front sizes, not total bio
  sizes. Spotted by James Bottomley

Acked-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
Acked-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 7deeed13
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment