]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nilfs2: use kthread_create and kthread_stop for the log writer thread
authorRyusuke Konishi <konishi.ryusuke@gmail.com>
Mon, 26 Aug 2024 17:41:15 +0000 (02:41 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:44 +0000 (20:43 -0700)
commit3f66cc261ccb54a8e4d8d5aa51c389c19453b00c
tree11ad3897db6e5dcf14cdc898e8ce22f8a5a5df7c
parentcfdfe9e17c4142cb556f34f25f93f4f85ca494f0
nilfs2: use kthread_create and kthread_stop for the log writer thread

By using kthread_create() and kthread_stop() to start and stop the log
writer thread, eliminate custom thread start and stop helpers, as well as
the wait queue "sc_wait_task" on the "nilfs_sc_info" struct and
NILFS_SEGCTOR_QUIT flag that exist only to implement them.

Also, update the kernel doc comments of the changed functions as
appropriate.

Link: https://lkml.kernel.org/r/20240826174116.5008-8-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Huang Xiaojia <huangxiaojia2@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/segment.c
fs/nilfs2/segment.h