Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: deal with stale req count of plug list
In both legacy and mq path, req count of plug list is computed before allocating request, so the number can be stale when falling back to slept allocation, also the new introduced wbt can sleep too. This patch deals with the case by checking if plug list becomes empty, and fixes the KASAN report of 'BUG: KASAN: stack-out-of-bounds' which is introduced by Shaohua's patches of dispatching big request. Fixes: 600271d(blk-mq: immediately dispatch big size request) Fixes: 50d24c3(block: immediately dispatch big size request) Cc: Shaohua Li <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information