Re: [RFC][PATCH 2/9] perf: Clean up ctx reference counting

From: Peter Zijlstra
Date: Mon Apr 11 2011 - 04:36:06 EST


On Mon, 2011-04-11 at 14:05 +0800, Lin Ming wrote:

> > + put_ctx(ctx);
>
> You moved the get_ctx(), so it seems that this put_ctx is missing its
> relevant get_ctx.

Yeah, its cheating since we initialize the refcount on 1.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/