Commit a890d01
io_uring: fix poll requests leaking second poll entries
For pure poll requests, it doesn't remove the second poll wait entry
when it's done, neither after vfs_poll() or in the poll completion
handler. We should remove the second poll wait entry.
And we use io_poll_remove_double() rather than io_poll_remove_waitqs()
since the latter has some redundant logic.
Fixes: 88e41cf ("io_uring: add multishot mode for IORING_OP_POLL_ADD")
Cc: stable@vger.kernel.org # 5.13+
Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20210728030322.12307-1-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent ef04688 commit a890d01
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4939 | 4939 | | |
4940 | 4940 | | |
4941 | 4941 | | |
4942 | | - | |
4943 | 4942 | | |
4944 | 4943 | | |
4945 | 4944 | | |
| |||
4962 | 4961 | | |
4963 | 4962 | | |
4964 | 4963 | | |
| 4964 | + | |
4965 | 4965 | | |
4966 | 4966 | | |
4967 | 4967 | | |
| |||
5149 | 5149 | | |
5150 | 5150 | | |
5151 | 5151 | | |
5152 | | - | |
| 5152 | + | |
5153 | 5153 | | |
5154 | 5154 | | |
5155 | 5155 | | |
| |||
5221 | 5221 | | |
5222 | 5222 | | |
5223 | 5223 | | |
5224 | | - | |
5225 | 5224 | | |
5226 | 5225 | | |
5227 | 5226 | | |
| |||
0 commit comments