Commit c4453443 authored by Bart Van Assche's avatar Bart Van Assche Committed by Bart Van Assche
Browse files

BACKPORT: FROMGIT: block: BFQ: Add several invariant checks



If anything goes wrong with the counters that track the number of
requests, I/O locks up. Make such scenarios easier to debug by adding
invariant checks for the request counters. Additionally, check that
BFQ queues are empty before these are freed.

Cc: Jan Kara <jack@suse.cz>
Cc: Yu Kuai <yukuai3@huawei.com>
Change-Id: I566e972e4c9c5c3e8bb256e6be39f5bb6bec7256
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230516223853.1385255-1-bvanassche@acm.org


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Bug: 275581839
(cherry picked from commit 3e49c1e4 https://git.kernel.dk/cgit/linux/

)
[ bvanassche: backported to kernel v5.15 ]
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 5db3a9fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment