aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2025-07-31 04:49:53 +0000
committerJens Axboe <[email protected]>2025-07-31 21:00:41 +0000
commite2ba58ccc9099514380c3300cbc0750b5055fc1c (patch)
tree66e3c6a7696a6114f6fb4c56d3f3abcc705e09a9 /scripts/bpf_doc.py
parentMerge tag 'nvme-6.17-2025-07-31' of git://git.infradead.org/nvme into block-6.17 (diff)
downloadkernel-e2ba58ccc9099514380c3300cbc0750b5055fc1c.tar.gz
kernel-e2ba58ccc9099514380c3300cbc0750b5055fc1c.zip
block: Fix default IO priority if there is no IO context
Upstream commit 53889bcaf536 ("block: make __get_task_ioprio() easier to read") changes the IO priority returned to the caller if no IO context is defined for the task. Prior to this commit, the returned IO priority was determined by task_nice_ioclass() and task_nice_ioprio(). Now it is always IOPRIO_DEFAULT, which translates to IOPRIO_CLASS_NONE with priority 0. However, task_nice_ioclass() returns IOPRIO_CLASS_IDLE, IOPRIO_CLASS_RT, or IOPRIO_CLASS_BE depending on the task scheduling policy, and task_nice_ioprio() returns a value determined by task_nice(). This causes regressions in test code checking the IO priority and class of IO operations on tasks with no IO context. Fix the problem by returning the IO priority calculated from task_nice_ioclass() and task_nice_ioprio() if no IO context is defined to match earlier behavior. Fixes: 53889bcaf536 ("block: make __get_task_ioprio() easier to read") Cc: Jens Axboe <[email protected]> Cc: Bart Van Assche <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions