block: Do not allow boosters to adjusting scheduler

This commit is contained in:
ztc1997 2024-09-01 21:41:17 +08:00 committed by Ksawlii
parent d3fdbe7c8a
commit 8d7a99febf

View file

@ -770,11 +770,16 @@ static int __elevator_change(struct request_queue *q, const char *name)
return elevator_switch(q, e);
}
bool task_is_booster(struct task_struct *tsk);
ssize_t elv_iosched_store(struct request_queue *q, const char *name,
size_t count)
{
int ret;
if (task_is_booster(current))
return count;
if (!elv_support_iosched(q))
return count;