Re: [RFC PATCH v5 1/2] Use lock_device_hotplug() in cpu_probe_store() and cpu_release_store()

From: Tejun Heo
Date: Fri Apr 25 2014 - 08:28:33 EST


On Fri, Apr 25, 2014 at 09:56:10AM +0800, Li Zhong wrote:
> > A nests cpu subsys mutex under s_active of the online node. B nests
> > s_active of the online node under the cpu subsys mutex. What am I
> > missing?
>
> From the above two chain, I think the problem is cpu_subsys_mutex and
> s_active(online), which is the deadlock we are trying to solve in patch

Yeap, that one was what I was thinking about.

> #2. I seems to me s_active(release) here doesn't have lock issues?

And your patch doesn't change the situation for online. Alright,
thanks a lot for the explanation.

--
tejun
--
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/