projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d5f360
)
io_uring: warn on not destroyed io-wq
author
Pavel Begunkov
<asml.silence@gmail.com>
Sat, 27 Feb 2021 11:16:45 +0000
(11:16 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 4 Mar 2021 13:35:00 +0000
(06:35 -0700)
Make sure that we killed an io-wq by the time a task is dead.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index 83973f6b3c0a4953ad9bd39edb90924631191177..796b6d1f72f914c22d75c7b1caee94f66afb3bf3 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-7843,6
+7843,8
@@
void __io_uring_free(struct task_struct *tsk)
struct io_uring_task *tctx = tsk->io_uring;
WARN_ON_ONCE(!xa_empty(&tctx->xa));
+ WARN_ON_ONCE(tctx->io_wq);
+
percpu_counter_destroy(&tctx->inflight);
kfree(tctx);
tsk->io_uring = NULL;