From: Chris Wilson Subject: Re: [Intel-gfx] [PATCH] drm/i915: avoid struct mutex output_poll mutex lock loop on unload Date: Mon, 04 Oct 2010 09:49:28 +0100 Message-ID: <89k83a$9scei7@azsmga001.ch.intel.com> References: <1286159786-3878-1-git-send-email-keithp@keithp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1286159786-3878-1-git-send-email-keithp@keithp.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Keith Packard , intel-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Sun, 3 Oct 2010 19:36:26 -0700, Keith Packard wrote: > Cancel the output polling work proc before acquiring the struct mutex > to avoid acquiring the work proc mutex with the struct mutex > held. This avoids inverting the lock order seen when the work proc > runs. I thought this was part of Daniel's reordering to avoid race conditions between interrupts and module unload. Fortunately not. The lack of locking during hotplug is worrisome should we ever do dynamic connectors. Applied to -next. Now you also said that we have memory corruption after unload... :( Thanks, -Chris -- Chris Wilson, Intel Open Source Technology Centre