Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5802503imm; Tue, 12 Jun 2018 13:40:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKYGR4HjeB/6/KNazjXjC5rG+NC8IJltrtAYmAR9gxUB8uKoQNFGmI/40dx/uImGqcqzg3Q X-Received: by 2002:aa7:854e:: with SMTP id y14-v6mr1889294pfn.165.1528836004546; Tue, 12 Jun 2018 13:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528836004; cv=none; d=google.com; s=arc-20160816; b=MBgreaD1x5s6HlYnZu4d5pPxYCIe8Fhgjot3vsLgVVmZGNEFW0SabkUBMPOSm8OPoI rFxPBN2P3SwcCMs6x5xIklI9S4DV6JTV/y4Lpa4hiW2j05WOHar9YmNd8fC1MZO6v6dh rK2UpoOiYA1KwuuI065DOpe+5EPwMNmfzyqMyLox+qaepjgw+89rJ659jngROPnZY+Q7 WwU3H9ngmHQ/+t8yHY/vAmrK6nHwSqL7Lk+ovYxEv3exP9YefQWWhXZs+2H1/R9vdLKx DMyXpb2TUlHJ+HXIvH+HGCU0MMXz6bUvsdRAEbIexUHJv2C2DyEmzzSa5KaTOwsNQPcq NfmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=YbqbxpHXMgOkPcRU271b+k3+L5rs3L5sRIZwOsMJeUE=; b=v8G9qat2aw020ekciCK34TDs7wjNxrQWNV9T9oknW3xaTSrpjHkYjzbBECQiOhsaRi uph6K7QLgV9yqVJ7bsq+ArVYDJ7Q1qw3yIAiMMYyvHWxPy1QVSazncS7pKrEGYFsRKX5 /HIFypsRj3jA4RJGndXJprLrA81m4wPSQBYD3C1BFba75A5cf7XjGa4QqAskPsHvn03L 2cpcT9+AKzOrYRTbYxI7RF09fPygVj0RdjLR6zIi505ck3/KCuKCVvTmCTo5XhrvndlV 81aj43q9qnxJkIpgTveT1k5xcTYnLJkYLwfjz4lQShmFt0nKwyOtE1O7ZaQulDfE5JnG mdhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=YxxvAIpk; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n81-v6si832174pfk.277.2018.06.12.13.39.49; Tue, 12 Jun 2018 13:40:04 -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=@broadcom.com header.s=google header.b=YxxvAIpk; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934196AbeFLUjQ (ORCPT + 99 others); Tue, 12 Jun 2018 16:39:16 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:42136 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933609AbeFLUjP (ORCPT ); Tue, 12 Jun 2018 16:39:15 -0400 Received: by mail-pf0-f193.google.com with SMTP id w7-v6so132747pfn.9 for ; Tue, 12 Jun 2018 13:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=YbqbxpHXMgOkPcRU271b+k3+L5rs3L5sRIZwOsMJeUE=; b=YxxvAIpkLLIICjg29pLNyX7Sd8oItkSP7vayrx8w4iRYkJSi2NTFvmATOigxnxI+d3 Y8pvUD+f0i0Xw1i7h1046G1zvabdPzK06eD0JfJ8dIOf9ZLSu1dhIFWGcGiyABg1/Yts FiEWgCTJUmPkt8yiR2VGL3CY1sAkdn/fiy3sU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YbqbxpHXMgOkPcRU271b+k3+L5rs3L5sRIZwOsMJeUE=; b=iwB6XjERSNWGOYq1RjtHS5KulybZlqDa1yFgZ/qxOAAhoyurHHrPZWCsXfbNcrYZpm GQJ50gDhMPZG9tna4Ifn/vFznm1mbmDYmvhiDn0B0oesOS3vO2bqV00lDLB3Ha+xVWxc w8sgwiFmQHvPjsqUTC288NQz4wXATHGMlHzHgY1K4j70wZNJd3AOMb5otGNYeX70uXQt H1AJQD6vGr/P9KohPqfQH82KpqwqG4NbtuZk24g19wQxHvzxWgdJCG0SsCrK64kpdW0P SE7gPAxguy4d6WjeZzIT7eYXN1YYmUBitwVJlukedht6hEz2RFiVZzFQ1F8a7qBc4cMy RkZA== X-Gm-Message-State: APt69E0IC0AkdubSwGIiryE+3kKApTZYJSk89ZmWj67ojTgZkyhtdH2M aRBSmnfQSoI5YuAUSUV278wHDQ== X-Received: by 2002:a63:7f4f:: with SMTP id p15-v6mr1633026pgn.312.1528835954913; Tue, 12 Jun 2018 13:39:14 -0700 (PDT) Received: from [10.69.55.99] ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id t5-v6sm1138042pfh.32.2018.06.12.13.39.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 13:39:14 -0700 (PDT) Subject: Re: [PATCH 4/5] nvmet: use atomic allocations when allocating fc requests To: Johannes Thumshirn , Keith Busch Cc: Sagi Grimberg , Linux Kernel Mailinglist , Linux NVMe Mailinglist , Hannes Reinecke , Christoph Hellwig References: <20180515074043.22843-1-jthumshirn@suse.de> <20180515074043.22843-5-jthumshirn@suse.de> From: James Smart Message-ID: Date: Tue, 12 Jun 2018 13:39:12 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180515074043.22843-5-jthumshirn@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/15/2018 12:40 AM, Johannes Thumshirn wrote: > fcloop_fcp_req() runs with the hctx_lock (a rcu_read_lock() locked > section) held, so memory allocations done in this context have to be > atomic. ... > > Signed-off-by: Johannes Thumshirn > --- > drivers/nvme/target/fcloop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/nvme/target/fcloop.c b/drivers/nvme/target/fcloop.c > index 34712def81b1..d2209c60f95f 100644 > --- a/drivers/nvme/target/fcloop.c > +++ b/drivers/nvme/target/fcloop.c > @@ -509,7 +509,7 @@ fcloop_fcp_req(struct nvme_fc_local_port *localport, > if (!rport->targetport) > return -ECONNREFUSED; > > - tfcp_req = kzalloc(sizeof(*tfcp_req), GFP_KERNEL); > + tfcp_req = kzalloc(sizeof(*tfcp_req), GFP_ATOMIC); > if (!tfcp_req) > return -ENOMEM; > Reviewed-by:   James Smart