diff options
author | Damien Le Moal <[email protected]> | 2021-08-11 12:36:57 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-18 07:21:11 -0600 |
commit | a680dd72ec336b81511e3bff48efac6dbfa563e7 (patch) | |
tree | 5709232a1ad77b6c95c9e38fe888f0209baff1a5 /lib/debugobjects.c | |
parent | 69f87cc7086558ad84f20001256474aa611fc0eb (diff) |
block: bfq: fix bfq_set_next_ioprio_data()
For a request that has a priority level equal to or larger than
IOPRIO_BE_NR, bfq_set_next_ioprio_data() prints a critical warning but
defaults to setting the request new_ioprio field to IOPRIO_BE_NR. This
is not consistent with the warning and the allowed values for priority
levels. Fix this by setting the request new_ioprio field to
IOPRIO_BE_NR - 1, the lowest priority level allowed.
Cc: <[email protected]>
Fixes: aee69d78dec0 ("block, bfq: introduce the BFQ-v0 I/O scheduler as an extra scheduler")
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions