Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp400899imm; Thu, 31 May 2018 02:32:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ5ANrfuKWzmusNFtlzetx50m5FXqgLS6x2Y9jLFNZcO8BOS/b7hQR+KpSBY363UWwPJ/Rd X-Received: by 2002:a63:7145:: with SMTP id b5-v6mr4957848pgn.45.1527759132391; Thu, 31 May 2018 02:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527759132; cv=none; d=google.com; s=arc-20160816; b=Lu8ymyQd489CiZUaL6klmLA8VVAiHZnN2zkfhjQhSL2H0SWClQjG+HbVR5wAg8W7H2 yz9Yd2fUUItdljm2ueFOPXbqgZDz1BJ7l+o8NR+QljqtqGoZXq/aOGnVmHgAiDgZxruz PCDAm/MRSZHGhXet9LQfX1wRWZaJwMmIXLSL6Sy0Ml1zY9r27TahkTvm44zuNWR2DZWT wxnJMySaPgCTwW6/g/UlVpC8pZwub0/OSaoPtGVhM0BQYcGdSzG0OgIkaUm+TtpBOQaO +dYs3RLsddrgC7ANvsOf1Rc18WDRAii6xtBxYlalp8Rmqntb4gjU+qZoGABUN2LEOBT1 igNQ== 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=/GdZz4hDZqxjrZbDRfQfFN4/5neOjigsUxKCkw0QzHs=; b=i/GdEds7XspP6ILZgBF5zoYGCjDhiorGutK2YaR5Z7mD5Lp95kJ0jRAIUWRwPoZdwx EfjtrMsmIiKPgkg3m5kN8AmmerWxT5ZT+NOeaxmYXbAwYkUYxbSCDHzX7R+bjeD/PGjY pkJ0zwUrNZTfNtl3uOzbOAUYgCUvREY6veMRFDydid2XEgaOQSGk0qUw6Unmo/GHi4D8 29RZbmU5CBpDbNHPTzrbGLtwrx0txrpvbUYOy4C3Q4r7lIDVdbpa5LP7q4jppLwHZfDk mgLIgLH1Q7bd/a07xeTDGeKVoYSn21Fshoa2Yhrtf3J2N9zXWW9DgrGiVlSAMSvKfmXQ v8yg== 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 f7-v6si36549812pfa.78.2018.05.31.02.31.57; Thu, 31 May 2018 02:32:12 -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; 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 S1754201AbeEaJbd (ORCPT + 99 others); Thu, 31 May 2018 05:31:33 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50471 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754092AbeEaJbc (ORCPT ); Thu, 31 May 2018 05:31:32 -0400 Received: by mail-wm0-f67.google.com with SMTP id t11-v6so52800852wmt.0 for ; Thu, 31 May 2018 02:31:31 -0700 (PDT) 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-language :content-transfer-encoding; bh=/GdZz4hDZqxjrZbDRfQfFN4/5neOjigsUxKCkw0QzHs=; b=lqrvakek5A376mUJdSrLq888qKzlAnc4hCqAFSiQgOsniSH4ygBQ5CyQHgMb6Ap57A gX/hQAA5bKgDkGk5BGGXQZo7QvP3iff+s1uTG5m5cAgy+LIfSIiyWA+d3Oqp9JKHCi90 bZz2HTB6yJ8err/1ongSFakr9ffduZ5cN7eRHZzAsfhXiz0AI22uM2Rf9juyAAbFpL5P ypVNIq7kiKhte1Zfg9lqPCdq6tEg+rOlQcMIs09BBsTBJh+7d6oMoDwEX7tJgO2TjR3t /sh3pL5GYcHvLvuOTncW3bFem6EfW0xbkWDVy4EZDmoEJJ73g6cLySBlELdECBcOwYbF n5uQ== X-Gm-Message-State: APt69E1j3rZGKKKozjHlHfJQPS+pzSbf5ZZsSpZ/c01VVMK0xoK4KL0z oVLpfh3hn9Fm+RjAyPu4MvM= X-Received: by 2002:a1c:8953:: with SMTP id l80-v6mr4221117wmd.17.1527759091428; Thu, 31 May 2018 02:31:31 -0700 (PDT) Received: from [192.168.64.169] (bzq-219-42-90.isdn.bezeqint.net. [62.219.42.90]) by smtp.gmail.com with ESMTPSA id 5-v6sm27940877wre.41.2018.05.31.02.31.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 02:31:30 -0700 (PDT) Subject: Re: [PATCH 4/5] nvmet: use atomic allocations when allocating fc requests To: Johannes Thumshirn , Keith Busch Cc: Christoph Hellwig , Linux NVMe Mailinglist , Linux Kernel Mailinglist , Hannes Reinecke References: <20180515074043.22843-1-jthumshirn@suse.de> <20180515074043.22843-5-jthumshirn@suse.de> From: Sagi Grimberg Message-ID: <3c91cf45-aa85-e1a5-6d25-5654131626dd@grimberg.me> Date: Thu, 31 May 2018 12:31:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180515074043.22843-5-jthumshirn@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed 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 > 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); Question, why isn't tfcp_req embedded in fcpreq? don't they have the same lifetime? > if (!tfcp_req) > return -ENOMEM; > >