]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Use rhashtable walk interface in glock_hash_walk
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 11 Feb 2017 11:26:45 +0000 (19:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 17:28:22 +0000 (12:28 -0500)
commit4387c4375623ebe150f80cd0985295a4cebfee8b
treea857800b4709df6830f499701abe4c10a502996f
parentcbe97d3fdb6bab0f3c7442d38ab6c9fdd298b6cd
gfs2: Use rhashtable walk interface in glock_hash_walk

The function glock_hash_walk walks the rhashtable by hand.  This
is broken because if it catches the hash table in the middle of
a rehash, then it will miss entries.

This patch replaces the manual walk by using the rhashtable walk
interface.

Fixes: d86b3a1ecc02 ("GFS2: Use resizable hash table for glocks")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/gfs2/glock.c