gfs2: Fix refcount leak in gfs2_glock_poke
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 27 Jul 2020 17:18:57 +0000 (19:18 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 3 Aug 2020 11:45:37 +0000 (13:45 +0200)
commitc07bfb4d8fa1ee11c6d18b093d0bb6c8832d3626
tree2a15ed75ca0f4b009a65f9572ee053db321b8344
parent4c5c3010408d872359134cfa209619778d8f15e6
gfs2: Fix refcount leak in gfs2_glock_poke

In gfs2_glock_poke, make sure gfs2_holder_uninit is called on the local
glock holder.  Without that, we're leaking a glock and a pid reference.

Fixes: 9e8990dea926 ("gfs2: Smarter iopen glock waiting")
Cc: stable@vger.kernel.org # v5.8+
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c