提交 52a1199c 编写于 作者: J Josef Bacik 提交者: Jens Axboe

blk-iolatency: fix blkg leak in timer_fn

At this point we have a ref on the blkg, we need to drop it if we don't
have a iolat.
Signed-off-by: NJosef Bacik <josef@toxicpanda.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 47255491
......@@ -627,7 +627,7 @@ static void blkiolatency_timer_fn(struct timer_list *t)
iolat = blkg_to_lat(blkg);
if (!iolat)
continue;
goto next;
lat_info = &iolat->child_lat;
cookie = atomic_read(&lat_info->scale_cookie);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册