]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Fix debugfs glocks dump
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 19 Sep 2017 12:15:35 +0000 (07:15 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 25 Sep 2017 17:32:33 +0000 (12:32 -0500)
commit055fbd769f363e08bb38b1da1719a21db775fb42
treeddcd2abb5f0f1e868940de711e10b2682c1452e3
parent391602ae1f813d844a3289647a9eb78b26e7cd41
gfs2: Fix debugfs glocks dump

The switch to rhashtables (commit d86b3a1ecc) broke the debugfs glock
dump (/sys/kernel/debug/gfs2/<device>/glocks) for dumps bigger than a
single buffer: the right function for restarting an rhashtable iteration
from the beginning of the hash table is rhashtable_walk_enter;
rhashtable_walk_stop + rhashtable_walk_start will just resume from the
current position.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Cc: stable@vger.kernel.org # v4.3+
fs/gfs2/glock.c