commit | c953a735c7d4d0d1b092b5c594258a07a84149db | [log] [tgz] |
---|---|---|
author | Bob Peterson <rpeterso@redhat.com> | Thu Mar 26 12:22:05 2020 -0500 |
committer | Bob Peterson <rpeterso@redhat.com> | Fri Mar 27 14:08:05 2020 -0500 |
tree | d74622b42e529aec7eb9fb82e5e273bac75c99fa | |
parent | 9592ea80ad13fe06d7848028af6c917aa1cd0aaa [diff] |
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>