Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52a1199c authored by Josef Bacik's avatar Josef Bacik Committed by Jens Axboe
Browse files

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: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 47255491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);