commit | c8d1ba583fe67c6b5e054d89f1433498a924286f | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Mon Sep 14 11:07:26 2020 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Sep 30 20:32:33 2020 -0600 |
tree | 9084b57baac94b201e831aa3d54088db1ac90353 | |
parent | 3f0e64d054114b725569c2481bbc6a8eb538bf15 [diff] |
io_uring: split work handling part of SQPOLL into helper This is done in preparation for handling more than one ctx, but it also cleans up the code a bit since io_sq_thread() was a bit too unwieldy to get a get overview on. __io_sq_thread() is now the main handler, and it returns an enum sq_ret that tells io_sq_thread() what it ended up doing. The parent then makes a decision on idle, spinning, or work handling based on that. Signed-off-by: Jens Axboe <axboe@kernel.dk>