Revert "blk-cgroup: simplify blkg freeing from initialization failure paths"
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Feb 2023 05:35:23 +0000 (06:35 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 Feb 2023 15:11:11 +0000 (08:11 -0700)
commitdcb52201435197c56154ff7c8cb139284d254bda
tree729c4c8733af24b27dacf8bf2f4ef570e6b94dd7
parentc43332fe028c252a2a28e46be70a530f64fc3c9d
Revert "blk-cgroup: simplify blkg freeing from initialization failure paths"

It turns out this was too soon.  blkg_conf_prep does to funky locking games
with the queue lock for this to work properly.

This reverts commit 27b642b07a4a5eb44dffa94a5171ce468bdc46f9.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230209053523.437927-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c