OSDN Git Service

gfs2: Move lock flush locking to gfs2_trans_{begin,end}
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 12 Dec 2020 22:30:22 +0000 (23:30 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 3 Feb 2021 17:37:24 +0000 (18:37 +0100)
commitc1eba1b0bca59316f34aa6f70fe5004abba8082d
tree4da58e439d18160f7e28d257748335a700606a71
parentf3708fb59f6c2498e8ec4f29010375f600b68642
gfs2: Move lock flush locking to gfs2_trans_{begin,end}

Move the read locking of sd_log_flush_lock from gfs2_log_reserve to
gfs2_trans_begin, and its unlocking from gfs2_log_release to
gfs2_trans_end.  Use gfs2_log_release in two places in which it was open
coded before.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c
fs/gfs2/log.h
fs/gfs2/trans.c