]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Grab glock reference sooner in gfs2_add_revoke
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 May 2020 16:56:46 +0000 (11:56 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 8 May 2020 16:49:04 +0000 (18:49 +0200)
commit89f5b476eb89af6b903d7fccf0f5ca73135a7d80
tree5db08d08950bda6f964188a825b96c6b8a472487
parentcfa9f37327d8ea7a70e0a2f5743625b35ad37b26
gfs2: Grab glock reference sooner in gfs2_add_revoke

This patch rearranges gfs2_add_revoke so that the extra glock
reference is added earlier on in the function to avoid races in which
the glock is freed before the new reference is taken.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/log.c