blk-cgroup: don't use removal safe list iterators
authorDaniel Vacek <neelx@redhat.com>
Thu, 4 Jan 2024 18:00:30 +0000 (19:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Jan 2024 23:07:56 +0000 (16:07 -0700)
commitfab4c16c527e24c804efa4992b3cf40438c9b227
tree0e97a73fe16f963ac4bc1aaa3bc65c2fcada54f1
parent458aa1a09939a56e044768013c86b5ef06e1c4f1
blk-cgroup: don't use removal safe list iterators

Commit f1c006f1c685 moved deletion of the list blkg->q_node from
blkg_destroy() to blkg_free_workfn(). Switch to using the list
iterators, as we don't need removal protection anymore.

Signed-off-by: Daniel Vacek <neelx@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20240104180031.148148-1-neelx@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c