Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3691156imu; Mon, 14 Jan 2019 07:26:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7GHHYbDwPnNHKdjzpdcycZXAjxz4PZLeiXPUoBl++8K1TTfjlQdILb4MoFjJ08fWfFPaQx X-Received: by 2002:a17:902:a03:: with SMTP id 3mr26118397plo.112.1547479602963; Mon, 14 Jan 2019 07:26:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547479602; cv=none; d=google.com; s=arc-20160816; b=Q4tOC7krY29N0Y5w332Lw/Jdj/avbVKAEJcMHel+nqQ30ff2b5hAWBe327oDwQmVER I4WOdE3u6lDVVYWMQNdv4eRk2NOQ1IlQNG2FaHB+3QvnHDiWmDEiJlZ66MMJxHJ6Sn/S NwwUk9+lU90hfZpjzeM/raQwMfhEuaP7mgeeY5XRZUfb1UYR2y/ZmAEmnUhGW5moClfO OFSnmrEk/t3EV+xB+TbOMtcO2fOAw2f00gTZjFHLGN6pwM4GLF9Uo1GQp78iXs4mR+qU Nsnp0/qg7FD8HuwVV6uvEiuyyJUK77MeDvrs2MwqOovjaFBhEtysn/o6NnZ7wJXjAZsM UU2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Og8BZeed9Dm7OHTIhVcdl99gGRcQqsfQVhxANsneef4=; b=afSYGQDXBn+RvmpoUofoqHvZBpgLLIOM780N2/32lvCJ05DS0nDi++blK6nxFy5gIt q+FvCGd2tN8hNg/gFm39nP1S+u4GQXgRU5ZxO49bEUk1/O0NdClyd5VHiOViRNinkpO8 YmSmo60opo1WLwvzo6TLtIWjgIeqHpNSOaKiKhLPZC7Sz8CGz78bKOwEhxsWTzxRzxqx PRI0Vz2TGv11hUQffjhfvpygEJyVB2GvybxA90aeLN3c5WmCUOZ6p1Of4xZijnJ67Gco OJW05bfSHDMpET51N7Roa4zNNX40F8gb57gmUW+hIEKD6cf31n/nuyBvHCkkD19dUpei NieQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=h2t2PmnQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si569155pgl.268.2019.01.14.07.26.27; Mon, 14 Jan 2019 07:26:42 -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; dkim=pass header.i=@163.com header.s=s110527 header.b=h2t2PmnQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbfANPZF (ORCPT + 99 others); Mon, 14 Jan 2019 10:25:05 -0500 Received: from m12-17.163.com ([220.181.12.17]:41789 "EHLO m12-17.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726609AbfANPZE (ORCPT ); Mon, 14 Jan 2019 10:25:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Og8BZeed9Dm7OHTIhV cdl99gGRcQqsfQVhxANsneef4=; b=h2t2PmnQMMF89plCub2vXZ4sm64dj20bRP uUIumUF5B5+KiEt+nGVdNbR4PLuvlzydNN0UkMlKsEW5RFxUsvQD5uC69Ncge0FR r13PeKW+KMubtA6+2zC6ROsbH7jPNeMdxmwq7YLj3ca1lLZ4yifQ95ipceCjwMEp 93Qs3rUsI= Received: from localhost.localdomain (unknown [171.213.47.169]) by smtp13 (Coremail) with SMTP id EcCowAA3BtfGqTxcAi+3Aw--.62S2; Mon, 14 Jan 2019 23:24:56 +0800 (CST) From: wangbo To: linux-kernel@vger.kernel.org Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, wang.bo116@zte.com.cn, wangbo Subject: [PATCH] scsi: wd719x Replace GFP_KERNEL with GFP_ATOMIC in wd719x_chip_init Date: Mon, 14 Jan 2019 23:24:49 +0800 Message-Id: <1547479489-11560-1-git-send-email-wdjjwb@163.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: EcCowAA3BtfGqTxcAi+3Aw--.62S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1fArWxZw48Jr47XFy7Wrg_yoWxKFb_WF Wjvrn2qr4qkF17Aw18ZFs3Aa40vw4fXw4Dur1Ygry7u3ySgFn8J34Uuw17u3yrCF47Xry3 Jw4jq34YyFsxCjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU1wID7UUUUU== X-Originating-IP: [171.213.47.169] X-CM-SenderInfo: xzgmy4re6rljoofrz/1tbiEBA8GVWBjXOAoQAAsu Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wd719x_host_reset get spinlock first then call wd719x_chip_init, so replace GFP_KERNEL with GFP_ATOMIC in wd719x_chip_init. Signed-off-by: wangbo --- drivers/scsi/wd719x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index e3310e9..7b1b645 100644 --- a/drivers/scsi/wd719x.c +++ b/drivers/scsi/wd719x.c @@ -318,7 +318,7 @@ static int wd719x_chip_init(struct wd719x *wd) if (!wd->fw_virt) wd->fw_virt = dma_alloc_coherent(&wd->pdev->dev, wd->fw_size, - &wd->fw_phys, GFP_KERNEL); + &wd->fw_phys, GFP_ATOMIC); if (!wd->fw_virt) { ret = -ENOMEM; goto wd719x_init_end; -- 2.7.4