Re: [PATCH 1/3] genclk: add generic framework for managing clocks.

From: Andrew Morton
Date: Sun Jul 13 2008 - 17:04:33 EST


On Mon, 14 Jul 2008 00:53:51 +0400 Dmitry <dbaryshkov@xxxxxxxxx> wrote:

> > > + list_del(&clk->priv.node);
> > > + kref_put(&clk->priv.ref, clk_release);
> >
> >
> > Might not be able to call kref_put(), either.
>
> I'll move it outside of the spinlock. But tell me please, why?

Because the release handler might not like being called under
that lock. I didn't check...
--
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/