]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Save ip from gfs2_glock_nq_init
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 30 Sep 2021 18:49:36 +0000 (13:49 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 25 Oct 2021 06:42:18 +0000 (08:42 +0200)
commitd069a2bd4a24aab714f27f3510b1bba4a7e73a71
tree1e20cf05bba0eb0ba0e18a4fe82c4ae09fbd778c
parentebec9104d9afb977dc3c9aab7c17c8444d6c82ba
gfs2: Save ip from gfs2_glock_nq_init

Before this patch, when a glock was locked by function gfs2_glock_nq_init,
it initialized the holder gh_ip (return address) as gfs2_glock_nq_init.
That made it extremely difficult to track down problems because many
functions call gfs2_glock_nq_init. This patch changes the function so
that it saves gh_ip from the caller of gfs2_glock_nq_init, which makes
it easy to backtrack which holder took the lock.

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