Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6841895ybi; Wed, 29 May 2019 14:13:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxq1oqiY6Hx68P1PCf6KMygtCC8xjOR1YQ24DjkjEZRWVwRyjPDtiK/plfjLCPPWwMCoPbn X-Received: by 2002:a63:e408:: with SMTP id a8mr72237pgi.146.1559164411369; Wed, 29 May 2019 14:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559164411; cv=none; d=google.com; s=arc-20160816; b=lT8/qen5Breeix3QEAGG/H2HzCiuIQkZoQ78u7rggvLO19C/3Ntkn/XwmCds1+chtJ ABooIZFQvoCd8ASlP8hGUOuc3METMs8f/h9yX7wkcOgi8AcDJldqAWA692VpUgmkL4ep 7x1jujyOQtX7hRgW6tS1TozMZA4z7Ldqk5wjQzb17offymhIqOABhtMhwOhRaRlJBqeu bC8NsGyo73hdJmxjSAX26QbdGHWhUWSKR3XG9Byr3GHPp8ygMZY+w48y/Wq6hJpVUa7j 9PoDzlS370By4DPu30XI29mx3itBVSah+xD0Fk8lRpSK/QD8Z8XxE4pOsgLOPFFqPz+Q DFsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=HbBIKpJ1V87/XwhjrPhv8viXHcfTQeqI4PjBeSTg0Gw=; b=lDtlDDyM7fE4PqERNsNyfJ0EiD7XmcyHgbjHEvNk1G6txcPrgTQOLoEifxX24kzbCo o4wjyM/n2dSfjBTiylsnMuyCal5VRPZK9O8XDDqZNfwz9f8mMP5EhNU0rSF7Fut3Zq4X SC5c7EaXC87LM/93HgrTVYWyyRBSJwcQuuPYiQh8NdpFggrM0/bUDNvl/8Eu5aI2Rb4Q 4kasiqCuOG9R2hQx8mIvQskBsxM8GuX8EmURg9uwrid1+GRvLD05L32kftRfivuZlUVx zL1dwMrfeSlCZUd6XOyfl6v/UAVNrE97mqSmAM1eFn+mdEr3yoHJprqkz1V1p49EuZsO 3iMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ba3srmf7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n129si964408pfn.106.2019.05.29.14.13.14; Wed, 29 May 2019 14:13:31 -0700 (PDT) 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=@google.com header.s=20161025 header.b=Ba3srmf7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726581AbfE2VLu (ORCPT + 99 others); Wed, 29 May 2019 17:11:50 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40553 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbfE2VLt (ORCPT ); Wed, 29 May 2019 17:11:49 -0400 Received: by mail-pg1-f193.google.com with SMTP id d30so612486pgm.7 for ; Wed, 29 May 2019 14:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=HbBIKpJ1V87/XwhjrPhv8viXHcfTQeqI4PjBeSTg0Gw=; b=Ba3srmf7dzvoQQJfIF/Nc/363r3WxrkxUxwT1YX1SdakmHjJrUsGhqH349Q4UarhU2 MnNR1ppijSniN3N2dYXoH/VQWbC/KlBv2pVrxgIo1zsJans2j1koEH7lhZNMwOTVt498 b9oC/t55egmakJMdUNpD3fnO087XYBxrNh4fgOoedVsfyR3R7OtARZHJy1CdAoL426O0 bnrVOTy3RZNYL04h2sYGYSeQVopdPZZiEwNmTyIKgjGy50InFP010uUQ0cS2p8Dx/Qf3 YW2pP/9v1SEatT92/tdzFONInXTeYiQ5zR18fN8Wq8yy5PgtpDQlV86SlqHnyRyzFuJ8 fZ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=HbBIKpJ1V87/XwhjrPhv8viXHcfTQeqI4PjBeSTg0Gw=; b=bBMkd2vOVVgJ4UMLc/27dWLQxV578s99gmEipWCYa3s3KlGzTRyZW/YZb1hEAm82Ra i1sqkUeo1QaCvIXkuITrxmWqfNzQyvlxUpIYXCFvivOaK8QId2xsj7k+WuhfQlvCnW5x w+GTFuNf2OZ+vfTDDhWNPFsrzQQFZ2bkXFMv3A88t9ELkF7n1dC1+AbOo48cpp4va4qk +tdFZpwIL/nMiUq9Q0Xn90QE903nJ73Fnhn6+z4r0AtwnWDPA3S9J8nRjk5wiXiblDYa CWvZ9/soor+ilTl2DHXx+VY1IkmYOSWN4GuD0wxMN3xWS19uUFdmBEsvdnipiZjhMN2x Nskw== X-Gm-Message-State: APjAAAV1pcgz60NgrkU9+JIQyDVWcFz5lQjqZhBT194WLsQ6aUhBEVMf RrluShIdkzX+zEz6idbd39mUOw== X-Received: by 2002:a63:de53:: with SMTP id y19mr64382pgi.166.1559164308033; Wed, 29 May 2019 14:11:48 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id x18sm712793pfj.17.2019.05.29.14.11.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 May 2019 14:11:47 -0700 (PDT) Date: Wed, 29 May 2019 14:11:46 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Christoph Hellwig cc: Hariprasad Kelam , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] wd719x: pass GFP_ATOMIC instead of GFP_KERNEL In-Reply-To: <20190529062316.GA3997@infradead.org> Message-ID: References: <20190529013540.GA20273@hari-Inspiron-1545> <20190529062316.GA3997@infradead.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 May 2019, Christoph Hellwig wrote: > > wd719x_chip_init is getting called in interrupt disabled > > mode(spin_lock_irqsave) , so we need to GFP_ATOMIC instead > > of GFP_KERNEL. > > > > Issue identified by coccicheck > > I don't think request_firmware is any more happy being called under > a spinlock. The right fix is to not hold a spinlock over the board > initialization. > Right, and not even wd719x_chip_init() is always called in this context otherwise wd719x_board_found() would also need the same change.