On 11/26/24 2:21 AM, Christoph Hellwig wrote:
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.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>