Skip to content

Commit

Permalink
FIXME: kernel warns the worker thread slept > 120s
Browse files Browse the repository at this point in the history
The dput worker thread will sleep if there's no item to put.

Signed-off-by: shenping.matt <[email protected]>
  • Loading branch information
shenping-bd committed Mar 18, 2024
1 parent 2cc0b13 commit 6003e21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/LKM/src/smith_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ static int __init smith_start_delayed_put(void)
memcache_init_pool(&g_delayed_put_root, nobjs * num_possible_cpus(),
sizeof(struct delayed_put_node), 0, NULL, NULL);

/* wake up delayed-put worker thread */
wake_up_process(g_delayed_put_thread);
return 0;
}

Expand Down

0 comments on commit 6003e21

Please sign in to comment.