Received: by 10.223.176.46 with SMTP id f43csp4237875wra; Tue, 23 Jan 2018 06:30:10 -0800 (PST) X-Google-Smtp-Source: AH8x225DGjDXCnWcJOsiaBlA+BSKnvwZUydfPiZ0sOJrjiy+f5YbhFwC7wy9R6tDnTeJBM+nBCvZ X-Received: by 10.98.87.2 with SMTP id l2mr10479716pfb.46.1516717810343; Tue, 23 Jan 2018 06:30:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516717810; cv=none; d=google.com; s=arc-20160816; b=HunSexsIbNqw9mShTPqZvGZGMCzDiPf0aj3RJtvfdQ5rSwjuCZ6BKDTFvKJDOCN5b7 aYCUM2l3vtn9pE9vFZBR0mDlOS1vsJJrQiB+6HoPMYW32cExMsjg4Cf9/OpRH7YprUIC uezaMrvlTXBXatHn3i+ymMWWrqROzx2SEzVoiil0vaho0e/TeLfQxlsbNbtMwfFgCctq b1li9BH6hL9AGAfuBPGMS/rBR+rvXaCZ90Vv+kkrBgXWAhJjIrY0eSbcTfDWdXU3FGi7 IiMu5uNK+DQ5Jx+3IKQcchP8IG/yUerOOGpA4w3Za7vTHzKA57ko5p+78fv7koLvUv/X qjZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=CjArLGgEI64ffcSnCSZRm/Kye0sUj54RdI6dadCtq04=; b=hu405kIKOxjFS1NhSUurHnQln7GJR/LGDdSPrwrpH//d6SFgnSGauqmCIwvKD+SjiT 6TN9L7vxAEnKLbbd35QoIurxcuZ20i5HprR10mCiVDhQQKfN22d268b1V1z5a8S21SMu 32USJy2Adj+6bJeq1hldXV72zqpdOxLp/R7wBsd6CYKMgatwtaNAF/QYQyJhmayHa5E3 vIeftRWFdbBcWhkpMYtpR50KkwDYdGfVyqfgA5gpMatXrviwWWeBFFd0EJw6IDWuzXW2 i+cE1DvnH039vG0uNipKjpYYjLzaVwAtvJI1yD03Pq79+WpBHGI/ouaq+vIotxPs7Adv 748A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si1576419pfe.15.2018.01.23.06.29.55; Tue, 23 Jan 2018 06:30:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751979AbeAWO2N (ORCPT + 99 others); Tue, 23 Jan 2018 09:28:13 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:60836 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbeAWO2M (ORCPT ); Tue, 23 Jan 2018 09:28:12 -0500 Received: by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1edzYW-0003XO-Cg; Tue, 23 Jan 2018 15:28:08 +0100 Subject: Re: [alsa-devel] [PATCH] sound: emu10k1: Replace GFP_ATOMIC with GFP_KERNEL in synth_alloc_pages To: Jia-Ju Bai Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <1516700268-26923-1-git-send-email-baijiaju1990@gmail.com> From: "Maciej S. Szmigiero" Message-ID: Date: Tue, 23 Jan 2018 15:28:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1516700268-26923-1-git-send-email-baijiaju1990@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.01.2018 10:37, Jia-Ju Bai wrote: > The function synth_alloc_pages is not called in atomic context. > Thus GFP_ATOMIC is not necessary, and it can be replaced with GFP_KERNEL. > > Signed-off-by: Jia-Ju Bai > --- > sound/pci/emu10k1/memory.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I've submitted a patch last Sunday that removes this whole code anyway, see: "[PATCH 4/5] ALSA: emu10k1: make sure synth DMA pages are allocated with DMA functions". Maciej