Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block, bfq-mq: turn BUG_ON on request-size into WARN_ON
BFQ has many checks of internal and external consistency. One of them checks that an I/O request has still sectors to serve, if it happens to be retired without being served. If the request has no sector to serve, a BUG_ON signals the failure and causes the kernel to terminate. Yet, from a crash report by a user [1], this condition may happen to hold, in apparently correct functioning, for I/O with a CD/DVD. To address this issue, this commit turns the above BUG_ON into a WARN_ON. This commit also adds a companion WARN_ON on request insertion into the scheduler. [1] https://groups.google.com/d/msg/bfq-iosched/DDOTJBroBa4/VyU1zUFtCgAJ Reported-by: Alexandre Frade <admfrade@gmail.com> Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
- Loading branch information