Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1154754b authored by Keith Busch's avatar Keith Busch Committed by Gerrit - the friendly Code Review server
Browse files

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 case of 0 in bio_split(). Restore the previous working behavior.

Change-Id: I5d4b36862fb7f7202996bcaa2c4b7d71b49e6ba6
Fixes: 9cc5169c ("block: Improve physical block alignment of split bios")
Reported-by: default avatarEric Deal <eric.deal@wdc.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Git-commit: f09dbec9
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarPradeep P V K <ppvk@codeaurora.org>
parent bcb3f4fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment