diff options
author | Josef Bacik <josef@toxicpanda.com> | 2018-07-31 12:39:02 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-01 09:16:01 -0600 |
commit | 52a1199ccd426ad583ade4eb678b3b5846c58f43 (patch) | |
tree | c4de9b664eb8394617222ae6b65a1dc6a690af59 /block/blk-iolatency.c | |
parent | 4725549192c9633b6a3740bf23770cb758bee4a0 (diff) | |
download | lwn-52a1199ccd426ad583ade4eb678b3b5846c58f43.tar.gz lwn-52a1199ccd426ad583ade4eb678b3b5846c58f43.zip |
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: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iolatency.c')
-rw-r--r-- | block/blk-iolatency.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c index bb59b2929e0d..b0dc4fc64b3e 100644 --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c @@ -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); |