Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933497Ab3CLUNz (ORCPT ); Tue, 12 Mar 2013 16:13:55 -0400 Received: from two.firstfloor.org ([193.170.194.197]:36236 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755196Ab3CLUNy (ORCPT ); Tue, 12 Mar 2013 16:13:54 -0400 Date: Tue, 12 Mar 2013 21:13:51 +0100 From: Andi Kleen To: Oleg Nesterov Cc: Linus Torvalds , Andi Kleen , Lucas De Marchi , Benjamin Herrenschmidt , Linux Kernel Mailing List , Paul Mackerras , david@gibson.dropbear.id.au, Kees Cook , Serge Hallyn , "Rafael J. Wysocki" , Andrew Morton , Feng Hong , Lucas De Marchi Subject: Re: Regression with orderly_poweroff() Message-ID: <20130312201351.GF11268@two.firstfloor.org> References: <1363058712.4534.12.camel@pasglop> <20130312182210.GA15862@redhat.com> <20130312191118.GA17439@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130312191118.GA17439@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 750 Lines: 19 > Btw. There is another "strange" user, arch/x86/kernel/cpu/mcheck/mce.c. > It uses mce_trigger_work to call call_usermodehelper(UMH_NO_WAIT). > Why? UMH_NO_WAIT is already atomic. And the !work_pending() check is > confusing, schedule_work(schedule_work) checks it is not pending. I think you're right, the additional step shouldn't be needed. The MCE Handler uses the trick to do this in MCE context if the interrupts were enabled earlier. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/