diff options
| author | Christoph Hellwig <hch@lst.de> | 2023-02-03 16:03:44 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2023-02-03 08:20:04 -0700 |
| commit | 0b6f93bdf07e52620f725f721e547408e0d04c9d (patch) | |
| tree | f3af6f21fa7ef66764f8fb9d9d69ecdf42bef90a /lib/mpi/mpi-mod.c | |
| parent | 178fa7d49815ea8001f43ade37a22072829fd8ab (diff) | |
blk-cgroup: improve error unwinding in blkg_alloc
Unwind only the previous initialization steps that happened in blkg_alloc
using goto based unwinding. This avoids the need for the !queue special
case in blkg_free and thus ensures that any blkg seens outside of
blkg_alloc is always fully constructed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230203150400.3199230-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions
