]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74cb8f35752af624a3bfe82d3d8461c93623f74e
tree3f856d7566dd4b7ad4b58ad3e58008ca44057877
parentab5f9a24479e127c111fb5bf85c0bb322401872c
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