[Intel-gfx] [PATCH] drm/i915: Hold struct_mutex during hotplug processing
daniel at ffwll.ch
Fri Jul 29 03:25:12 PDT 2011
On Thu, Jul 28, 2011 at 03:50:00PM -0700, Keith Packard wrote:
> On Wed, 27 Jul 2011 09:03:31 -0700, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
> > On Wed, 27 Jul 2011 02:21:24 -0700
> > Keith Packard <keithp at keithp.com> wrote:
> > > So the work may get executed immediately rather than being run later at
> > > some point?
> > It sure looks that way... but I don't remember any rule about work
> > queue items having inter dependencies like this.
I've checked the workqueue code and haven't found it to run a work
immediately, it's always queued. Further this problem is very easy to
diagnose: Even without lockdep the scheduler will notice the stuck task
after about 120s and the backtrace should make matters extremely clear. On
the other hand if somebody adds some nice state clobbering in the drm
helper, we have a very hard bug to track down.
Generally modesetting isn't perf critical, so I vote for more locking,
just in case.
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48
More information about the dri-devel