diff options
author | 2024-08-27 02:41:16 +0900 | |
---|---|---|
committer | 2024-09-01 20:43:44 -0700 | |
commit | 74b0099340e0be96b37f5f8b0b5d02b48bb25a2b (patch) | |
tree | 9b4b1322df591d7989cece7bea83f53a3ed4a456 /scripts/generate_rust_analyzer.py | |
parent | nilfs2: use kthread_create and kthread_stop for the log writer thread (diff) | |
download | linux-rng-74b0099340e0be96b37f5f8b0b5d02b48bb25a2b.tar.xz linux-rng-74b0099340e0be96b37f5f8b0b5d02b48bb25a2b.zip |
nilfs2: refactor nilfs_segctor_thread()
Simplify nilfs_segctor_thread(), the main loop function of the log writer
thread, to make the basic structure easier to understand.
In particular, the acquisition and release of the sc_state_lock spinlock
was scattered throughout the function, so extract the determination of
whether log writing is required into a helper function and make the
spinlock lock sections clearer.
Link: https://lkml.kernel.org/r/20240826174116.5008-9-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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions