Skip to content
Commit c0d0a9ff authored by Aaron Lu's avatar Aaron Lu Committed by Jens Axboe
Browse files

block: remove test of incorrect io priority level



Ever since commit eca20409("scsi: block: ioprio: Clean up interface
definition"), the macro IOPRIO_PRIO_LEVEL() will mask the level value to
something between 0 and 7 so necessarily, level will always be lower than
IOPRIO_NR_LEVELS(8).

Remove this obsolete check.

Reported-by: default avatarKexin Wei <ys.weikexin@h3c.com>
Cc: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: default avatarAaron Lu <ziqianlu@bytedance.com>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20250508083018.GA769554@bytedance


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent db492e24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment