diff options
| author | Hao Xu <[email protected]> | 2021-08-08 13:54:33 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-08-10 01:59:06 +0000 |
| commit | 49e7f0c789add1330b111af0b7caeb0e87df063e (patch) | |
| tree | 759616576ebaa3498952e4dd8d23746738d0bed1 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | io_uring: rsrc ref lock needs to be IRQ safe (diff) | |
| download | kernel-49e7f0c789add1330b111af0b7caeb0e87df063e.tar.gz kernel-49e7f0c789add1330b111af0b7caeb0e87df063e.zip | |
io-wq: fix bug of creating io-wokers unconditionally
The former patch to add check between nr_workers and max_workers has a
bug, which will cause unconditionally creating io-workers. That's
because the result of the check doesn't affect the call of
create_io_worker(), fix it by bringing in a boolean value for it.
Fixes: 21698274da5b ("io-wq: fix lack of acct->nr_workers < acct->max_workers judgement")
Signed-off-by: Hao Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[axboe: drop hunk that isn't strictly needed]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
