We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a27472 commit ba5ef6dCopy full SHA for ba5ef6d
fs/io_uring.c
@@ -9035,15 +9035,15 @@ static void io_uring_del_task_file(unsigned long index)
9035
9036
static void io_uring_clean_tctx(struct io_uring_task *tctx)
9037
{
9038
+ struct io_wq *wq = tctx->io_wq;
9039
struct io_tctx_node *node;
9040
unsigned long index;
9041
9042
+ tctx->io_wq = NULL;
9043
xa_for_each(&tctx->xa, index, node)
9044
io_uring_del_task_file(index);
- if (tctx->io_wq) {
- io_wq_put_and_exit(tctx->io_wq);
9045
- tctx->io_wq = NULL;
9046
- }
+ if (wq)
+ io_wq_put_and_exit(wq);
9047
}
9048
9049
static s64 tctx_inflight(struct io_uring_task *tctx, bool tracked)
0 commit comments