Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261287AbVEKTwP (ORCPT ); Wed, 11 May 2005 15:52:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262035AbVEKTwP (ORCPT ); Wed, 11 May 2005 15:52:15 -0400 Received: from orb.pobox.com ([207.8.226.5]:29100 "EHLO orb.pobox.com") by vger.kernel.org with ESMTP id S261287AbVEKTwH (ORCPT ); Wed, 11 May 2005 15:52:07 -0400 Date: Wed, 11 May 2005 14:51:56 -0500 From: Nathan Lynch To: Dinakar Guniguntala Cc: Paul Jackson , Simon.Derr@bull.net, lse-tech@lists.sourceforge.net, Andrew Morton , Nick Piggin , V Srivatsa , lkml Subject: Re: [PATCH] cpusets+hotplug+preepmt broken Message-ID: <20050511195156.GE3614@otto> References: <20050511191654.GA3916@in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050511191654.GA3916@in.ibm.com> User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1680 Lines: 44 On Thu, May 12, 2005 at 12:46:54AM +0530, Dinakar Guniguntala wrote: > > cpusets+hotplug+preempt hangs up the machine, if both > cpuset and hotplug operations are going on simultaneously > > I also get this oops first > > scheduling while atomic: cpuoff.sh/0x00000001/25331 > [] schedule+0xa4d/0xa60 > [] wait_for_completion+0xc5/0xf0 > [] default_wake_function+0x0/0x20 > [] __down+0x83/0x110 > [] default_wake_function+0x0/0x20 > [] __down_failed+0x7/0xc > [] .text.lock.cpuset+0x105/0x15e > [] move_task_off_dead_cpu+0x130/0x1f0 > [] migrate_live_tasks+0x8c/0x90 > [] migration_call+0x75/0x2c0 > [] __stop_machine_run+0x92/0xb0 > [] notifier_call_chain+0x2d/0x50 > [] cpu_down+0x16b/0x2a0 > [] store_online+0x5b/0x80 > [] sysdev_store+0x35/0x40 > [] flush_write_buffer+0x3e/0x50 > [] sysfs_write_file+0x58/0x80 > [] vfs_write+0xc6/0x180 > [] sys_write+0x51/0x80 > [] syscall_call+0x7/0xb This trace is what should be fixed -- we're trying to schedule while the machine is "stopped" (all cpus except for one spinning with interrupts off). I'm not too familiar with the cpusets code but I would like to stay away from nesting these semaphores if at all possible. Will you share your testcase please? Nathan - 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/