Re: [input layer, lockdep warning] Re: [PATCH] cpuset: Reworksched domains and CPU hotplug handling (take 4)

From: Dmitry Torokhov
Date: Wed Aug 20 2008 - 09:08:24 EST


On Wed, Aug 20, 2008 at 08:44:37AM +0200, Ingo Molnar wrote:
>
> Dmitry,
>
> this lockdep warning triggered again in -tip testing:
>
> > > [ 59.750200] =======================================================
> > > [ 59.750200] [ INFO: possible circular locking dependency detected ]
> > > [ 59.750200] 2.6.27-rc3-tip-00076-g75f9a29-dirty #1
> > > [ 59.750200] -------------------------------------------------------
> > > [ 59.750200] Xorg/6623 is trying to acquire lock:
> > > [ 59.750200] (cpu_add_remove_lock){--..}, at: [<c0147dae>] cpu_maps_update_begin+0x14/0x16
> > > [ 59.750200]
> > > [ 59.750200] but task is already holding lock:
> > > [ 59.750200] (polldev_mutex){--..}, at: [<c07eb66f>] input_close_polled_device+0x22/0x47
> > > [ 59.750200]
> > > [ 59.750200] which lock already depends on the new lock.
>
> See the bootlog below. Upstream base of the tree below is
> 1fca254274823876. The first warnings came with b635acec48.
>

Ingo,

I am not quite sure why lockdep complains. From the input POV
everything is pretty simple - we use polldev_mutex to start ipolldevd
workqueue on demand, when first user appears, and also to destroy
workqueue after last iser is gone.

Is it reporoducible for you? Is it only with your tree or mainline as
well?

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