summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2021-08-11 12:36:57 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 11:47:59 +0200
commit35a276f173356448cd07d83238d2bbc30796b267 (patch)
treecc7666d59bea4f37aff7fd5194ad020d2e2402fa /drivers/s390
parentaab312696d37de80502ca633b40184de24f22917 (diff)
downloadlinux-stable-35a276f173356448cd07d83238d2bbc30796b267.tar.gz
linux-stable-35a276f173356448cd07d83238d2bbc30796b267.tar.bz2
linux-stable-35a276f173356448cd07d83238d2bbc30796b267.zip
block: bfq: fix bfq_set_next_ioprio_data()
commit a680dd72ec336b81511e3bff48efac6dbfa563e7 upstream. 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: <stable@vger.kernel.org> Fixes: aee69d78dec0 ("block, bfq: introduce the BFQ-v0 I/O scheduler as an extra scheduler") Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20210811033702.368488-2-damien.lemoal@wdc.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions