From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [xfs-masters] next-20081210: BUG: sleeping function called from invalid context at mm/slub.c:1619 (XFS) Date: Thu, 11 Dec 2008 19:29:55 +0100 Message-ID: <20081211182955.GB27952@lst.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from verein.lst.de ([213.95.11.210]:60411 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755510AbYLKSaB (ORCPT ); Thu, 11 Dec 2008 13:30:01 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-next-owner@vger.kernel.org List-ID: To: Alexander Beregalov Cc: "linux-next@vger.kernel.org" , xfs@oss.sgi.com, xfs-masters@oss.sgi.com On Thu, Dec 11, 2008 at 01:10:23PM +0300, Alexander Beregalov wrote: > BUG: sleeping function called from invalid context at mm/slub.c:1619 > in_atomic(): 1, irqs_disabled(): 0, pid: 8096, name: sh > INFO: lockdep is turned off. > Pid: 8096, comm: sh Tainted: G W 2.6.28-rc7-next-20081210 #2 > Call Trace: > [] ? __debug_show_held_locks+0x1b/0x24 > [] __might_sleep+0x120/0x122 > [] __kmalloc+0x70/0xfc > [] kmem_alloc+0x75/0xd7 > [] xfs_fs_vcmn_err+0x46/0x94 > [] xfs_fs_cmn_err+0x59/0x5e xfs_fs_vcmn_err does a sleeping memory allocation under a spinlock, nasty. I have an idea that will get rid of the memory allocation completely, I'll come back to you once I have hacked something up. > Filesystem "sda2": xlog_space_left: head behind tail > tail_cycle = 1802201963, tail_bytes = -690563584 > GH cycle = 3078, GH bytes = 69183384 This btw is a bug, too..