diff options
author | Keith Busch <[email protected]> | 2020-08-06 14:58:37 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-08-21 17:09:22 -0600 |
commit | e4b469c66f3cbb81c2e94d31123d7bcdf3c1dabd (patch) | |
tree | 24f135d23704e2ec34c87f0ee6bf976edc2acd2f /include/linux/fpga/fpga-mgr.h | |
parent | db03f88fae8a2c8007caafa70287798817df2875 (diff) |
block: fix get_max_io_size()
A previous commit aligning splits to physical block sizes inadvertently
modified one return case such that that it now returns 0 length splits
when the number of sectors doesn't exceed the physical offset. This
later hits a BUG in bio_split(). Restore the previous working behavior.
Fixes: 9cc5169cd478b ("block: Improve physical block alignment of split bios")
Reported-by: Eric Deal <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions