From patchwork Mon Aug 22 21:12:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trond Myklebust X-Patchwork-Id: 1086482 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7MLD86U009516 for ; Mon, 22 Aug 2011 21:13:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753816Ab1HVVND (ORCPT ); Mon, 22 Aug 2011 17:13:03 -0400 Received: from mx2.netapp.com ([216.240.18.37]:30009 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753812Ab1HVVNB (ORCPT ); Mon, 22 Aug 2011 17:13:01 -0400 X-IronPort-AV: E=Sophos;i="4.68,265,1312182000"; d="scan'208";a="573178216" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 22 Aug 2011 14:13:01 -0700 Received: from lade.trondhjem.org.com ([10.55.76.227]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id p7MLCj4a006682; Mon, 22 Aug 2011 14:12:46 -0700 (PDT) From: Trond Myklebust To: linux-nfs@vger.kernel.org Cc: Trond Myklebust Subject: [PATCH 1/4] NFSv4: nfs4_proc_async_renew should use a GFP_NOFS allocation Date: Mon, 22 Aug 2011 17:12:37 -0400 Message-Id: <1314047560-24534-1-git-send-email-Trond.Myklebust@netapp.com> X-Mailer: git-send-email 1.7.6 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 22 Aug 2011 21:13:08 +0000 (UTC) We shouldn't allow the renew daemon to do direct reclaim on the NFS partition. Signed-off-by: Trond Myklebust --- fs/nfs/nfs4proc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8c77039..776b41a 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -3397,7 +3397,7 @@ int nfs4_proc_async_renew(struct nfs_client *clp, struct rpc_cred *cred) if (!atomic_inc_not_zero(&clp->cl_count)) return -EIO; - data = kmalloc(sizeof(*data), GFP_KERNEL); + data = kmalloc(sizeof(*data), GFP_NOFS); if (data == NULL) return -ENOMEM; data->client = clp;