]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: change from write to read lock for sd_log_flush_lock in journal replay
authorBob Peterson <rpeterso@redhat.com>
Thu, 26 Mar 2020 17:22:05 +0000 (12:22 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 27 Mar 2020 19:08:05 +0000 (14:08 -0500)
commiteaab58e19c003350f17ccc8c4ed0e92c4583a7d8
treed74622b42e529aec7eb9fb82e5e273bac75c99fa
parent4637e5bb322563f6f8682ffc5df29b5b80e8c214
gfs2: change from write to read lock for sd_log_flush_lock in journal replay

Function gfs2_recover_func grabs the sd_log_flush_lock rw_semaphore in
write mode. This is unnecessary because we only need to prevent log flush
from using sd_log_bio bio while it does. Therefore, a read lock will be
enough. This is a small step in cleaning up log flush.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/recovery.c