From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757892Ab1KPOTy (ORCPT ); Wed, 16 Nov 2011 09:19:54 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:40317 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757829Ab1KPOTx (ORCPT ); Wed, 16 Nov 2011 09:19:53 -0500 X-Authority-Analysis: v=2.0 cv=JOm5Qr2b c=1 sm=0 a=ZycB6UtQUfgMyuk2+PxD7w==:17 a=eC4cwosM5RIA:10 a=5SG0PmZfjMsA:10 a=IkcTkHD0fZMA:10 a=pCh46N-c8aBnP2KyDPMA:9 a=L8OyRJvy_n50WiAP8mYA:7 a=QEXdDO2ut3YA:10 a=ZycB6UtQUfgMyuk2+PxD7w==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.67.80.29 Subject: Re: [PATCH -rt] printk: Don't emit console_cpu_notify() for CPU_DYING From: Steven Rostedt To: Yong Zhang Cc: Thomas Gleixner , LKML , linux-rt-users In-Reply-To: <20111116094219.GA9281@zhy> References: <20111116094219.GA9281@zhy> Content-Type: text/plain; charset="UTF-8" Date: Wed, 16 Nov 2011 09:19:50 -0500 Message-ID: <1321453190.4181.21.camel@frodo> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2011-11-16 at 17:42 +0800, Yong Zhang wrote: > Otherwise we will get below warning: > > BUG: sleeping function called from invalid context at /build/linux/kernel/rtmutex.c:645 > in_atomic(): 1, irqs_disabled(): 1, pid: 1054, name: migration/9 > no locks held by migration/9/1054. > irq event stamp: 36 > hardirqs last enabled at (35): [] _raw_spin_unlock_irq+0x30/0x70 > hardirqs last disabled at (36): [] stop_machine_cpu_stop+0x8f/0x110 > softirqs last enabled at (0): [] copy_process+0x6d3/0x1640 > softirqs last disabled at (0): [< (null)>] (null) > Pid: 1054, comm: migration/9 Not tainted 3.2.0-rc1-rt2-11312-gbf51260-dirty #12 > Call Trace: Thomas, doesn't printk not print to serial in atomic contexts? Or did that change? -- Steve