io_uring: don't sleep schedule in SQPOLL thread if we need to park
authorJens Axboe <axboe@kernel.dk>
Wed, 9 Sep 2020 15:47:46 +0000 (09:47 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Sep 2020 10:59:17 +0000 (04:59 -0600)
commit767ad8101329e892b42ed9651f5a9d99ea246e55
tree0696ce5448982369f2d9852f3e4633deec3e5f47
parent1cef57669877e7fcd017a8503f826bb26ae6410b
io_uring: don't sleep schedule in SQPOLL thread if we need to park

If someone is waiting to park the thread, don't schedule waiting on
being woken through io_uring_enter().

Reported-by: syzbot+3c23789ea938faaef049@syzkaller.appspotmail.com
Suggested-by: Hillf Danton <hdanton@sina.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c