From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Tettamanti Subject: [DRM] BUG: sleeping function called from invalid context, drm_lastclose Date: Wed, 11 Aug 2010 10:48:29 +0200 Message-ID: <20100811084828.GA5709__34745.0520996519$1281516595$gmane$org@nb-core2.darkstar.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: Arnd Bergmann Cc: dri-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org Hi Arnd, this commit: commit 58374713c9dfb4d231f8c56cac089f6fbdedc2ec Author: Arnd Bergmann Date: Sat Jul 10 23:51:39 2010 +0200 drm: kill BKL from common code moved the call to (inside drm_release) drm_lastclose inside dev->count_lock spinlock. drm_lastclose however takes dev->struct_mutex (now inside an atomic context): BUG: sleeping function called from invalid context at /home/kronos/src/linux-2.6.git/kernel/mutex.c:94 in_atomic(): 1, irqs_disabled(): 0, pid: 3331, name: Xorg Pid: 3331, comm: Xorg Not tainted 2.6.35-06113-gf6cec0a #272 Call Trace: [] __might_sleep+0xf8/0xfa [] mutex_lock+0x1f/0x3e [] drm_lastclose+0x92/0x2ad [drm] [] drm_release+0x5ca/0x60d [drm] [] fput+0x130/0x1f7 [] filp_close+0x63/0x6d [] sys_close+0xa8/0xe2 [] system_call_fastpath+0x16/0x1b Luca ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev --