Commit 1b0cab3
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: 6975c1a ("block: remove the ioprio field from struct request")
Reported-by: Chris Bainbridge <[email protected]>
Reported-by: Sam Protsenko <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Chris Bainbridge <[email protected]>
Tested-by: Sam Protsenko <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 0b83c86 commit 1b0cab3
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
689 | 689 | | |
690 | | - | |
691 | | - | |
| 690 | + | |
692 | 691 | | |
693 | 692 | | |
694 | 693 | | |
| |||
753 | 752 | | |
754 | 753 | | |
755 | 754 | | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
| 755 | + | |
761 | 756 | | |
762 | 757 | | |
763 | 758 | | |
764 | 759 | | |
765 | 760 | | |
766 | 761 | | |
767 | | - | |
| 762 | + | |
768 | 763 | | |
769 | 764 | | |
770 | 765 | | |
| |||
0 commit comments