Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759382AbbLBRTE (ORCPT ); Wed, 2 Dec 2015 12:19:04 -0500 Received: from smtp.citrix.com ([66.165.176.89]:7211 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759360AbbLBRTA (ORCPT ); Wed, 2 Dec 2015 12:19:00 -0500 X-IronPort-AV: E=Sophos;i="5.20,374,1444694400"; d="scan'208";a="316029800" Message-ID: <565F2800.2040303@citrix.com> Date: Wed, 2 Dec 2015 17:18:56 +0000 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Boris Ostrovsky , , CC: , , Subject: Re: [Xen-devel] [PATCH] xen: Resume PMU from non-atomic context References: <1449076248-12062-1-git-send-email-boris.ostrovsky@oracle.com> In-Reply-To: <1449076248-12062-1-git-send-email-boris.ostrovsky@oracle.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 686 Lines: 16 On 02/12/15 17:10, Boris Ostrovsky wrote: > Resuming PMU currently triggers a warning from ___might_sleep() (assuming > CONFIG_DEBUG_ATOMIC_SLEEP is set) when xen_pmu_init() allocates GFP_KERNEL > page because we are in state resembling atomic context. > > Move resuming PMU to xen_arch_resume() which is called in regular context. > For symmetry move suspending PMU to xen_arch_suspend() as well. Applied to for-linus-4.4, thanks. David -- 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/