gfs2: List traversal in do_promote is safe
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 11 Jun 2022 03:00:23 +0000 (05:00 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 29 Jun 2022 15:01:59 +0000 (17:01 +0200)
commit6feaec81477af0390a41470cbd6b353f68dd853c
tree3f856d7566dd4b7ad4b58ad3e58008ca44057877
parent0befb8511e6a91716980c40c552acc5eec963cbd
gfs2: List traversal in do_promote is safe

In do_promote(), we're never removing the current entry from the list
and so the list traversal is actually safe.  Switch back to
list_for_each_entry().

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