]> 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)
commit2fd79316c367d0c7cf47a7e1b92da3232f1eb765
treeddcd2abb5f0f1e868940de711e10b2682c1452e3
parent6523232f6ac8002afeefde125e8ebfc081e3622d
gfs2: Fix debugfs glocks dump

The switch to rhashtables (commit e3c2502631) 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