Skip to content
Snippets Groups Projects
Commit fb3a1f6c authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent 65d43023
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment