gfs2: Lock imbalance on error path in gfs2_recover_one
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 5 Feb 2021 17:11:28 +0000 (18:11 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 5 Feb 2021 17:18:57 +0000 (18:18 +0100)
commit834ec3e1ee65029029225a86c12337a6cd385af7
tree4f0ade04a6186dcb2056fb1c35c7b5d3ceb1e6c5
parent82218943058d5e3fe692a38b5a549479738dab33
gfs2: Lock imbalance on error path in gfs2_recover_one

In gfs2_recover_one, fix a sd_log_flush_lock imbalance when a recovery
pass fails.

Fixes: c9ebc4b73799 ("gfs2: allow journal replay to hold sd_log_flush_lock")
Cc: stable@vger.kernel.org # v5.7+
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/recovery.c