io_uring: catch schedule out conditions under io_uring submit
authorJens Axboe <axboe@kernel.dk>
Tue, 16 Jul 2019 19:53:59 +0000 (13:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Jul 2019 20:00:08 +0000 (14:00 -0600)
commitbcabeeb875c693d61064f4f2a8dca17f35edd619
treefc8be77309cd128c5bd052e08dec409e77367bde
parent1624b0b200399bd6cd2b46ab3494738d1aef6b75
io_uring: catch schedule out conditions under io_uring submit

We don't want io_uring_enter() to ever block, unless the caller
explicitly asked for it (by using IORING_ENTER_GETEVENTS). Add
a simple debug check that'll catch this and show us the backtrace.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/sched.h
kernel/sched/core.c