Commit 8629397
committed
io_uring: don't use complete_all() on SQPOLL thread exit
We want to reuse this completion, and a single complete should do just
fine. Ensure that we park ourselves first if requested, as that is what
lead to the initial deadlock in this area. If we've got someone attempting
to park us, then we can't proceed without having them finish first.
Fixes: 37d1e2e ("io_uring: move SQPOLL thread io-wq forked worker")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent ba50a03 commit 8629397
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6783 | 6783 | | |
6784 | 6784 | | |
6785 | 6785 | | |
| 6786 | + | |
| 6787 | + | |
| 6788 | + | |
6786 | 6789 | | |
6787 | 6790 | | |
6788 | 6791 | | |
6789 | | - | |
| 6792 | + | |
6790 | 6793 | | |
6791 | 6794 | | |
6792 | 6795 | | |
| |||
0 commit comments