]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: Fix resolution of nested DM devices for cgroups
authorBenjamin Berg <bberg@redhat.com>
Thu, 5 Mar 2020 10:35:45 +0000 (11:35 +0100)
committerChris Down <chris@chrisdown.name>
Fri, 6 Mar 2020 16:11:44 +0000 (16:11 +0000)
commitb7cf4b4ef5d0336443f21809b1506bc4a8aa75a9
tree367a814b9d801560b3fd254560ece2dd970c8d0c
parent57680ddd403530b88c0150642962e222a70e1b2b
core: Fix resolution of nested DM devices for cgroups

When using the cgroups IO controller, the device that is controlled
should always be the toplevel block device. This did not get resolved
correctly for an LVM volume inside a LUKS device, because the code would
only resolve one level of indirection.

Fix this by recursively looking up the originating block device for DM
devices.

Resolves: #15008
src/core/cgroup.c