Skip to content
Snippets Groups Projects
Commit 1b0cab32 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

mq-deadline: don't call req_get_ioprio from the I/O completion handler


req_get_ioprio looks at req->bio to find the I/O priority, which is not
set when completing bios that the driver fully iterated through.

Stash away the dd_per_prio in the elevator private data instead of looking
it up again to optimize the code a bit while fixing the regression from
removing the per-request ioprio value.

Fixes: 6975c1a4 ("block: remove the ioprio field from struct request")
Reported-by: default avatarChris Bainbridge <chris.bainbridge@gmail.com>
Reported-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarChris Bainbridge <chris.bainbridge@gmail.com>
Tested-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20241126102136.619067-1-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 0b83c86b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment