mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
io-wq: have manager wait for all workers to exit
Instead of having to wait separately on workers and manager, just have the manager wait on the workers. We use an atomic_t for the reference here, as we need to start at 0 and allow increment from that. Since the number of workers is naturally capped by the allowed nr of processes, and that uses an int, there is no risk of overflow. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
65d4302317
commit
fb3a1f6c74
1 changed files with 22 additions and 8 deletions
30
fs/io-wq.c
30
fs/io-wq.c
Loading…
Add table
Add a link
Reference in a new issue