Revert "block: Do not allow boosters to adjusting scheduler"

This reverts commit c05672273a.
This commit is contained in:
Ksawlii 2024-11-17 20:45:13 +01:00
parent aa97f7f06c
commit ec34cb298e

View file

@ -757,16 +757,11 @@ 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;