Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1573604imm; Thu, 12 Jul 2018 04:24:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdC5nL6BGQLxG7p1pnl7wZMmfvIiNyVi/2Iuc3qATKJi4m2FnYl54CKwlBr26ir0xi1RRTU X-Received: by 2002:a62:d646:: with SMTP id r67-v6mr2004091pfg.130.1531394680373; Thu, 12 Jul 2018 04:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531394680; cv=none; d=google.com; s=arc-20160816; b=GLeAyXN2Gn5QIBvaEalm6ke0DWJbSFcCRw3tFiws3CdUyI+B9TcDzc+zmDXRVhfkkj SXsolc5vbuCw75hBzIhEl7O527FF/gVaT/dWedqUrZ0RvXLTJUZZkpORPV/XdPlZ1vco 4WGCePOcvzZFBNKiWjNm4IZ5v5pYogcjs0BVOCIqcFHcfEVJ3ZaAlE/cnONAm7DjGKpc 81a9RKiGnH7yhObbEdrYgAIZZSJXl2iMhrWa7G1BGYUHo6oWRijn+aFL1cyjFUgL/Pr9 fajSWJaZJGJV1AaD82UKfKAS3vjtfdrZiZ4AwDhawvDYu5oreIbjscBKmzKhulCBRhgU NUWQ== 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:dkim-signature:arc-authentication-results; bh=eJ8a7MWh+sOxA/5UNBc6Nl1IDk8LeAbCzZdyXZSerAs=; b=w8Kt8hVXtIbNWNcawIA2TerO3sh+vsCC+M/uMGSwHusJ0HWg5IjQnGuzcZkSFlRM79 HZPmYc++Pz1dFit+PCvkuEhJO4egsbL2KEdvHI0vWs7H9SlbByLd92kxRYvq0sbQJ2pr RMOlTKnCUATQjKH55WWRSFkIt0qiBg9FurfR5ivD0b9fy8iPGYCuopAiwFpw4sSdxiYk q+KF/PgWgcLRzLRZJCWyVsmfjgxmOebAZpYo4rOXPptQd+LVIGqKEmd3Yl0xYmrbN2zW LAmh3nISYchVZSRfwBF02LOKQvZBKavNLdGElae1hGM6DMREJhJMopFAiGDIIwJawo+n 432A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hK0Lp1Yx; 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 66-v6si20305979pge.159.2018.07.12.04.24.24; Thu, 12 Jul 2018 04:24:40 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hK0Lp1Yx; 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 S1726786AbeGLLct (ORCPT + 99 others); Thu, 12 Jul 2018 07:32:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59854 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbeGLLct (ORCPT ); Thu, 12 Jul 2018 07:32:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eJ8a7MWh+sOxA/5UNBc6Nl1IDk8LeAbCzZdyXZSerAs=; b=hK0Lp1YxizZRDM5WSZU3dYyth 8z6YZHjqkrCqChPHp/SDKTatKZvUBIjvR4I51Oz9M+3A8Y+vedDDttAUpVX+gKsCLeO+ra9tARiJ0 3jJAeTvxagWBan6TmuxNu5fhlciVhKoyXJgGGlv0OueSBGaMqtbt0XML46DE0/yXhDCo2Ds6te/CK P5NSqFUSCnI2eSJnIicdbz7AJANRxJhVsntdJ+Vl3PpYerGsuGRn9X1aEyX8jw4uOcxBSSnkxtdNL xgeiMyl5DscGp0vbHHGUu0fxIUajxJwCT/ajEPAkhQDBBy5UqOleFT/BvWVTGCaJNVWTfFezngwBs jSuTtA2yw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdZh7-00013l-R2; Thu, 12 Jul 2018 11:23:33 +0000 Date: Thu, 12 Jul 2018 04:23:33 -0700 From: Matthew Wilcox To: Dominique Martinet Cc: v9fs-developer@lists.sourceforge.net, Latchesar Ionkov , Eric Van Hensbergen , Ron Minnich , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 3/6] 9p: Replace the fidlist with an IDR Message-ID: <20180712112333.GA15277@bombadil.infradead.org> References: <20180711210225.19730-1-willy@infradead.org> <20180711210225.19730-4-willy@infradead.org> <20180712111726.GA17774@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712111726.GA17774@nautica> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 01:17:26PM +0200, Dominique Martinet wrote: > Matthew Wilcox wrote on Wed, Jul 11, 2018: > > diff --git a/net/9p/client.c b/net/9p/client.c > > index 389a2904b7b3..b89c7298267c 100644 > > --- a/net/9p/client.c > > +++ b/net/9p/client.c > > memset(&fid->qid, 0, sizeof(struct p9_qid)); > > Ah, I had missed that you didn't update this memset as you said in reply > to comment on v1. Rather than update the memset, I ... > Could you resend just this patch and either initialize fid->fid or use > kzalloc for the fid allocation? > > > + fid->fid = 0; Did that instead ;-) If I were going to initialise the entire structure to 0, I'd replace the kmalloc with kzalloc and drop the memset altogether. > If you do resend, alignment here was wrong. I think this warning from checkpatch is complete bullshit. It's really none of checkpatch's business how I choose to align function arguments. That said, if you want it to be aligned some particular way, feel free to adjust the whitespace. I don't care.