mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
rq-qos: set ourself TASK_UNINTERRUPTIBLE after we schedule
In case we get a spurious wakeup we need to make sure to re-set ourselves to TASK_UNINTERRUPTIBLE so we don't busy wait. Reviewed-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
64e7ea875e
commit
d14a9b389a
@ -262,6 +262,7 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
|
||||
}
|
||||
io_schedule();
|
||||
has_sleeper = true;
|
||||
set_current_state(TASK_UNINTERRUPTIBLE);
|
||||
} while (1);
|
||||
finish_wait(&rqw->wait, &data.wq);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user