block: Do not allow boosters to adjusting scheduler
This commit is contained in:
parent
d3fdbe7c8a
commit
8d7a99febf
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue