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 4443f8e commit 0605863Copy full SHA for 0605863
fs/io_uring.c
@@ -1920,6 +1920,10 @@ static int io_sq_thread(void *data)
1920
unuse_mm(cur_mm);
1921
mmput(cur_mm);
1922
}
1923
+
1924
+ if (kthread_should_park())
1925
+ kthread_parkme();
1926
1927
return 0;
1928
1929
@@ -2054,6 +2058,7 @@ static void io_sq_thread_stop(struct io_ring_ctx *ctx)
2054
2058
if (ctx->sqo_thread) {
2055
2059
ctx->sqo_stop = 1;
2056
2060
mb();
2061
+ kthread_park(ctx->sqo_thread);
2057
2062
kthread_stop(ctx->sqo_thread);
2063
ctx->sqo_thread = NULL;
2064
0 commit comments