Revision b22fa62a35d7f2029d757a518d78041822b7c7c1 authored by Pavel Begunkov on 21 October 2021, 12:20:29 UTC, committed by Jens Axboe on 21 October 2021, 17:19:38 UTC
Another change to the API io-wq worker limitation API added in 5.15, apply the limit to all prior users that already registered a tctx. It may be confusing as it's now, in particular the change covers the following 2 cases: TASK1 | TASK2 _________________________________________________ ring = create() | | limit_iowq_workers() *not limited* | TASK1 | TASK2 _________________________________________________ ring = create() | | issue_requests() limit_iowq_workers() | | *not limited* A note on locking, it's safe to traverse ->tctx_list as we hold ->uring_lock, but do that after dropping sqd->lock to avoid possible problems. It's also safe to access tctx->io_wq there because tasks kill it only after removing themselves from tctx_list, see io_uring_cancel_generic() -> io_uring_clean_tctx() Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/d6e09ecc3545e4dc56e43c906ee3d71b7ae21bed.1634818641.git.asml.silence@gmail.com Reviewed-by: Hao Xu <haoxu@linux.alibaba.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 4ea672a
File | Mode | Size |
---|---|---|
BUGS-parport | -rw-r--r-- | 319 bytes |
Kconfig | -rw-r--r-- | 5.5 KB |
Makefile | -rw-r--r-- | 729 bytes |
TODO-parport | -rw-r--r-- | 594 bytes |
daisy.c | -rw-r--r-- | 12.9 KB |
ieee1284.c | -rw-r--r-- | 21.9 KB |
ieee1284_ops.c | -rw-r--r-- | 22.9 KB |
multiface.h | -rw-r--r-- | 426 bytes |
parport_amiga.c | -rw-r--r-- | 6.1 KB |
parport_atari.c | -rw-r--r-- | 5.3 KB |
parport_ax88796.c | -rw-r--r-- | 9.1 KB |
parport_cs.c | -rw-r--r-- | 5.5 KB |
parport_gsc.c | -rw-r--r-- | 10.8 KB |
parport_gsc.h | -rw-r--r-- | 5.4 KB |
parport_ip32.c | -rw-r--r-- | 66.2 KB |
parport_mfc3.c | -rw-r--r-- | 9.7 KB |
parport_pc.c | -rw-r--r-- | 84.9 KB |
parport_serial.c | -rw-r--r-- | 20.3 KB |
parport_sunbpp.c | -rw-r--r-- | 9.3 KB |
probe.c | -rw-r--r-- | 7.4 KB |
procfs.c | -rw-r--r-- | 12.6 KB |
share.c | -rw-r--r-- | 33.5 KB |
Computing file changes ...