blk-cgroup: bypass blkcg_deactivate_policy after destroying
authorMing Lei <ming.lei@redhat.com>
Fri, 17 Nov 2023 02:35:24 +0000 (10:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 16:01:55 +0000 (17:01 +0100)
commit0730b1e32a0b032a3a4fddebfec54d7102056414
treec5227544c7b8136d9fc91a896194687a968908d7
parent5aba47ce61b7c277246e367f51fdcc930af6a699
blk-cgroup: bypass blkcg_deactivate_policy after destroying

[ Upstream commit e63a57303599b17290cd8bc48e6f20b24289a8bc ]

blkcg_deactivate_policy() can be called after blkg_destroy_all()
returns, and it isn't necessary since blkg_destroy_all has covered
policy deactivation.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20231117023527.3188627-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-cgroup.c