Received: by 10.223.185.116 with SMTP id b49csp5675195wrg; Wed, 7 Mar 2018 16:21:22 -0800 (PST) X-Google-Smtp-Source: AG47ELutUFkZHi2+dnYsgHPTrC4r6N1l9nHjXrPytSKjWEJIKkEzqFzHVZ43B7inxzQDV8swPvwC X-Received: by 2002:a17:902:718c:: with SMTP id b12-v6mr14364186pll.121.1520468482811; Wed, 07 Mar 2018 16:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520468482; cv=none; d=google.com; s=arc-20160816; b=mR/MnAigGzKGHOBQQM/Iv9nj6GIthJ7PTFHiukZNzwR/qxAfuYAdXfXL+jD12SyDN4 Fu7fXHVAX9Y2BC4QXhKh1kGoG7PVK+DIkdYzsuxiRjWmdsF2z50E44iumijNol1/4R6J i25EWW7K172OTRetZcM9u5OzKwlSSjmj1+DDzF4pHrcKkUQWiOKTJcr9VhEq7YOggxax Vpj/htijvXE+nE+a4XGeIDyxo9ZwsfB6htzBlamKRh1WaqqNxLgal50ARqt+82XQRMWS TfXO9ayCiUA7PJXjGDaU0xByaLwmNsvA3oaOnvu1OxGiHF3WQ8huPCNCm9nTdu4NaJy5 Cklg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=lNbFfl+Rv8Vbsgkz35JRMHLFE+RdZOZDULp4TOjZe28=; b=MrpnRQL7i7oUuPc7yTEct4F0bRvEF3GukDiVKEOzvTiZ7dI6tY+K3VcZL48vIRWtZk dcQYDAdpmpAwAZHefAPT3BijUXR6QVPzfoZU7s63wcAZEp+YJW7fMLysVzuYfCH4U2wU /Jl/Lv+hZ2KcQmKPEYzfHTVIxgqKd0NDDw64ZpLoRSxh7dpOm5eF3F6XmTYKDMbMv0xp ONhGkAWlR8jRjYQQxRaynE+wHo3SHi01p28yZFzAfy9yGhEbzwJpkKzvic+PiuZQIGpy MInivv2hARDXAW12xN2TiOM1RrUKG7mpxdyJbkANFpKzGvzsS9iLBbSxSdHrJc7d62Ri 0u1A== 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 j11si13581339pfi.57.2018.03.07.16.21.08; Wed, 07 Mar 2018 16:21:22 -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 S934431AbeCHAUF convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Mar 2018 19:20:05 -0500 Received: from mga02.intel.com ([134.134.136.20]:23161 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932448AbeCHAUD (ORCPT ); Wed, 7 Mar 2018 19:20:03 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2018 16:20:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,437,1515484800"; d="scan'208";a="22612340" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga007.fm.intel.com with ESMTP; 07 Mar 2018 16:20:02 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Mar 2018 16:20:02 -0800 Received: from FMSMSX109.amr.corp.intel.com ([169.254.15.144]) by fmsmsx121.amr.corp.intel.com ([169.254.6.69]) with mapi id 14.03.0319.002; Wed, 7 Mar 2018 16:20:01 -0800 From: "Dilger, Andreas" To: NeilBrown CC: "Drokin, Oleg" , Greg Kroah-Hartman , James Simmons , "Linux Kernel Mailing List" , Lustre Development List Subject: Re: [PATCH 07/17] staging: lustre: ptlrpc: change GFP_NOFS to GFP_KERNEL Thread-Topic: [PATCH 07/17] staging: lustre: ptlrpc: change GFP_NOFS to GFP_KERNEL Thread-Index: AQHTsbWnaNIxLrEYiUONnFtCprg+06PGCRQA Date: Thu, 8 Mar 2018 00:20:00 +0000 Message-ID: References: <151994679573.7628.1024109499321778846.stgit@noble> <151994708527.7628.4121961365281382022.stgit@noble> In-Reply-To: <151994708527.7628.4121961365281382022.stgit@noble> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.6.233] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mar 1, 2018, at 16:31, NeilBrown wrote: > > These allocations are performed during initialization, > so they don't need GFP_NOFS. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c | 2 +- > drivers/staging/lustre/lustre/ptlrpc/service.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c b/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c > index 577c5822b823..625b9520d78f 100644 > --- a/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c > +++ b/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c > @@ -377,7 +377,7 @@ static inline void enc_pools_alloc(void) > page_pools.epp_pools = > kvzalloc(page_pools.epp_max_pools * > sizeof(*page_pools.epp_pools), > - GFP_NOFS); > + GFP_KERNEL); > } > > static inline void enc_pools_free(void) > diff --git a/drivers/staging/lustre/lustre/ptlrpc/service.c b/drivers/staging/lustre/lustre/ptlrpc/service.c > index 49417228b621..f37364e00dfe 100644 > --- a/drivers/staging/lustre/lustre/ptlrpc/service.c > +++ b/drivers/staging/lustre/lustre/ptlrpc/service.c > @@ -2046,7 +2046,7 @@ static int ptlrpc_main(void *arg) > goto out; > } > > - env = kzalloc(sizeof(*env), GFP_NOFS); > + env = kzalloc(sizeof(*env), GFP_KERNEL); > if (!env) { > rc = -ENOMEM; > goto out_srv_fini; > @@ -2072,7 +2072,7 @@ static int ptlrpc_main(void *arg) > } > > /* Alloc reply state structure for this one */ > - rs = kvzalloc(svc->srv_max_reply_size, GFP_NOFS); > + rs = kvzalloc(svc->srv_max_reply_size, GFP_KERNEL); > if (!rs) { > rc = -ENOMEM; > goto out_srv_fini; > > Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation