diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-01-28 03:15:48 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-28 17:44:41 -0700 |
commit | 24369c2e3bb06d8c4e71fd6ceaf4f8a01ae79b7c (patch) | |
tree | 85a855b36b34647dd7b360635f2535545294afd8 /kernel/pid.c | |
parent | eba6f5a330cf042bb0001f0b5e8cbf21be1b25d6 (diff) | |
download | linux-stable-24369c2e3bb06d8c4e71fd6ceaf4f8a01ae79b7c.tar.gz linux-stable-24369c2e3bb06d8c4e71fd6ceaf4f8a01ae79b7c.tar.bz2 linux-stable-24369c2e3bb06d8c4e71fd6ceaf4f8a01ae79b7c.zip |
io_uring: add io-wq workqueue sharing
If IORING_SETUP_ATTACH_WQ is set, it expects wq_fd in io_uring_params to
be a valid io_uring fd io-wq of which will be shared with the newly
created io_uring instance. If the flag is set but it can't share io-wq,
it fails.
This allows creation of "sibling" io_urings, where we prefer to keep the
SQ/CQ private, but want to share the async backend to minimize the amount
of overhead associated with having multiple rings that belong to the same
backend.
Reported-by: Jens Axboe <axboe@kernel.dk>
Reported-by: Daurnimator <quae@daurnimator.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions