Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2701048imm; Thu, 9 Aug 2018 18:47:36 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxnjLMNLuG2P0Og0L5JUjJ2VTo39Gmtvizaf0/Mvc3Srm0WWMRuDZtDho9JDwYbAnv88PMG X-Received: by 2002:a62:280a:: with SMTP id o10-v6mr1551297pfo.129.1533865656393; Thu, 09 Aug 2018 18:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533865656; cv=none; d=google.com; s=arc-20160816; b=zqML7E4g0HnYJQTCaMseHJCwRwNppsxnN+FBiwtji2XKwDP3spbonHKMe0uYdXqyHW R/wWh7sjiVJP3UhzSUvPQ8x+3YkBkXSYHjFtmgncAGRO8/4VoNYu7hQvFbt8s8kIrF60 nwgpplIaMZ21urc0owmfTnvAoZCiEhb3IdnMdsa9prU2oPIU/1JRlkqeWPgZtim5SUhY 26B+s2lxzbY7PFZB+7Lnmd00fcjscrWt7BLx/zDD95TyceMqlWKUZ1gYbPyu+43z2Q5s i3IWpKuS5Nm7o+Kn+8N4yqpzkZxejknunoGWMI8l9BHCISbD3vvGsFbnqnuLZNIOtJrv AWEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=NK3bHcKCmofesAcZ4TqOfv7XQS7AZEAbCsP8M43xHF8=; b=a0geffkVKdqPF1JNNE2PEtMcK3iSOiCBlngrUiENeWoYxT2ek7SWpbr1mcFjuGQUuZ 65M1Ns2TtACoUcke3XSxt6WX88WXN5AXPaEDQl3qAyRZpp/VkF2HZjUOQXyGlN+FB0OP IvkMJIvMdm4gYWKVCqr+kVEz2Vcwuo/JITrAt8p51VHrmUMRveXBCDrMEwCsdR4AAw0n jq31xfQ3dRNWRj7lLerl9ZR4vsF75gHYz57Mctt4KzLszAobr3cVwf76jb4jhPb4ANrE nOIosaZ185YYr5H+uOuoeK+gVIkkw4tUZM5PGPsA1jrmliddQOv042EiqJQep6Piek9w 3f7g== 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 t135-v6si9761209pfc.139.2018.08.09.18.47.22; Thu, 09 Aug 2018 18:47:36 -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 S1727243AbeHJEJi (ORCPT + 99 others); Fri, 10 Aug 2018 00:09:38 -0400 Received: from nautica.notk.org ([91.121.71.147]:51515 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725724AbeHJEJi (ORCPT ); Fri, 10 Aug 2018 00:09:38 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id ED6F2C01B; Fri, 10 Aug 2018 03:42:02 +0200 (CEST) Date: Fri, 10 Aug 2018 03:41:47 +0200 From: Dominique Martinet To: piaojun Cc: v9fs-developer@lists.sourceforge.net, Dominique Martinet , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Greg Kurz Subject: Re: [PATCH v3 2/2] net/9p: add a per-client fcall kmem_cache Message-ID: <20180810014147.GB14699@nautica> References: <1533177452-2165-1-git-send-email-asmadeus@codewreck.org> <1533825236-22896-1-git-send-email-asmadeus@codewreck.org> <1533825236-22896-2-git-send-email-asmadeus@codewreck.org> <5B6CE900.1010103@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5B6CE900.1010103@huawei.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org piaojun wrote on Fri, Aug 10, 2018: > Could you help paste the test result of before-after-applied this patch in > comment? And please see my comments below. Thanks the the review, do you mean the commit message? I'll add the summary I wrote in reply to your question a few mails before. > > diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h > > index e23896116d9a..645266b74652 100644 > > --- a/include/net/9p/9p.h > > +++ b/include/net/9p/9p.h > > @@ -336,6 +336,9 @@ enum p9_qid_t { > > #define P9_NOFID (u32)(~0) > > #define P9_MAXWELEM 16 > > > > +/* Minimal header size: len + id + tag */ > > Here should be 'size + id + tag'. hm I didn't want to repeat size, but I guess people do refer to that field as size. I'll actually rewrite it as: Minimal header size: size[4] type[1] tag[2] > > + kmem_cache_destroy(clnt->fcall_cache); > > I'm afraid that we should check NULL for clnt->fcall_cache. kmem_cache_destroy() in mm/slab_common.c does the null check for us: ------ void kmem_cache_destroy(struct kmem_cache *s) { int err; if (unlikely(!s)) return; ------ -- Dominique