diff options
author | Ming Lei <tom.leiming@gmail.com> | 2016-01-23 01:05:33 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-23 04:42:30 +0100 |
commit | d0e5fbb01a67e400e82fefe4896ea40c6447ab98 (patch) | |
tree | 3c8d2fd4fe59ab2c278d26a2bc37209ba4765195 /block/noop-iosched.c | |
parent | Merge tag 'please-pull-copy_file_range' of git://git.kernel.org/pub/scm/linux... (diff) | |
download | linux-d0e5fbb01a67e400e82fefe4896ea40c6447ab98.tar.xz linux-d0e5fbb01a67e400e82fefe4896ea40c6447ab98.zip |
block: fix bio splitting on max sectors
After commit e36f62042880(block: split bios to maxpossible length),
bio can be splitted in the middle of a vector entry, then it
is easy to split out one bio which size isn't aligned with block
size, especially when the block size is bigger than 512.
This patch fixes the issue by making the max io size aligned
to logical block size.
Fixes: e36f62042880(block: split bios to maxpossible length)
Reported-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Cc: Keith Busch <keith.busch@intel.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/noop-iosched.c')
0 files changed, 0 insertions, 0 deletions