]> 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)
commit07adea9abd8a6c798ad92ef0f31d608ab5908ce3
tree3f856d7566dd4b7ad4b58ad3e58008ca44057877
parenta86b09e3b85d17c12991610463abf964e4f0c22c
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