Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762272AbZFQWmf (ORCPT ); Wed, 17 Jun 2009 18:42:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754871AbZFQWmZ (ORCPT ); Wed, 17 Jun 2009 18:42:25 -0400 Received: from mx2.redhat.com ([66.187.237.31]:45295 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754733AbZFQWmY (ORCPT ); Wed, 17 Jun 2009 18:42:24 -0400 Date: Wed, 17 Jun 2009 18:42:19 -0400 From: Mike Snitzer To: dm-devel@redhat.com Cc: Jeremy Fitzhardinge , NeilBrown , linux-raid@vger.kernel.org, Linux Kernel Mailing List , Jens Axboe Subject: Re: init_emergency_isa_pool calling mempool_create in non-sleeping context Message-ID: <20090617224219.GA9405@redhat.com> References: <4A396195.8060503@goop.org> <0f79c2d4513c50184383e223d3d2ee97.squirrel@neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f79c2d4513c50184383e223d3d2ee97.squirrel@neil.brown.name> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2182 Lines: 54 On Wed, Jun 17 2009 at 6:22pm -0400, NeilBrown wrote: > > You wanted dm-devel@redhat.com, not linux-raid@vger.kernel.org. > > NeilBrown > > > On Thu, June 18, 2009 7:35 am, Jeremy Fitzhardinge wrote: > > I just saw this when booting a current linux-2.6.git kernel > > (3fe0344faf7fdcb158bd5c1a9aec960a8d70c8e8). > > .config and full bootlog attached. > > > > BUG: sleeping function called from invalid context at > > /home/jeremy/git/linux/mm/slab.c:3029 > > in_atomic(): 1, irqs_disabled(): 0, pid: 388, name: lvm > > Pid: 388, comm: lvm Not tainted 2.6.30 #225 > > Call Trace: > > [] ? __init_rwsem+0x29/0x39 > > [] __might_sleep+0x110/0x112 > > [] kmem_cache_alloc+0x38/0x12b > > [] ? mempool_alloc_pages_isa+0x0/0x10 > > [] mempool_create_node+0x2f/0x152 > > [] ? mempool_free_pages+0x0/0xb > > [] mempool_create+0xd/0xf > > [] init_emergency_isa_pool+0x28/0x4f > > [] blk_queue_bounce_limit+0x40/0x56 > > [] dm_table_set_restrictions+0x82/0xa6 [dm_mod] > > [] dm_swap_table+0x132/0x15a [dm_mod] > > [] dev_suspend+0xfd/0x177 [dm_mod] > > [] dm_ctl_ioctl+0x252/0x2a2 [dm_mod] > > [] ? dev_suspend+0x0/0x177 [dm_mod] > > [] vfs_ioctl+0x2a/0x77 > > [] do_vfs_ioctl+0x4a7/0x4fa > > [] sys_ioctl+0x57/0x7a > > [] system_call_fastpath+0x16/0x1b This has been resolved and is waiting to be pushed along with the rest of the DM changes for 2.6.31. See: ftp://ftp.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/dm-table-establish-queue-limits-by-copying-table-limits.patch Maybe this fix should go now rather than wait a day or so for the larger DM push? Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/