Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp773174imm; Wed, 1 Aug 2018 05:11:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcol9QquXTM5gQN5+HY6PEuDZSUqz391WxBwHM3upWvwv57Ua6LB09rbU2X5GdZ/0CQghoH X-Received: by 2002:a17:902:b28b:: with SMTP id u11-v6mr16646381plr.2.1533125482420; Wed, 01 Aug 2018 05:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533125482; cv=none; d=google.com; s=arc-20160816; b=QCFAYgyPW32i8nxX/fdWKHKvvGD5lfx7YJI1+MuymTuJciYjkJ7R6MEWFg6eTPjec3 jrtjLLa8rEV6syBJRBtTfGbKYZH5iNviHoF/sXsozNuFrCFZmcTlF5r4eot8Uac/Uzgr rG67EIFxnSWGqudobQjq/bDIJgTBVXTWvxzmxeKJzpxB7DvPpccV96JBK7iOxrHhWIm1 TyMmI2oI25knFHJvcUjXD9gaDP/Es4762N/jCTQ1O2Msre6kX8zjsxM5nPifNdbxTjKk CTIpJ2/mElOyEaL91QJ7wWXZk5iXvWd0EPUuIGTvKRNQyJ9oaH9jlpER+qsb1VNPnvT4 TV8w== 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=ImjuAEr3lx4dDOq/UNeE3RZRgatuf4xwSlZRlkaybYI=; b=vr1aS+mt6V4eROUJF8AruWZcMt9DLwIqMAuK5mQ6UBt2PZJ3aOXeKPmQLcGK+FZyWl o9qFCojZTLe1ArzwOXdvhN3Vh+F7PtLwKh8YARp0lN/2/oZqRdfpqEGItxSkF2iFYVjY qlmtCZW9dLQgi4qPHxvUVnKqNfPiG346FnHmMmSaKxCSO3og194bAjZd534Ej/ea4/5z //GLlZIJwKOwFa6QIxFzpZ6Jql00xsoja53jB64pBVyF5Ij0jav4A08itvvucai8nidB E8TdVMuOw3wJTwncVchfngssxtTcFh/8xx0nyqR9wOTcXct9yigGR5v3TYG/MlDzjH0f BV9g== 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 s10-v6si14133276pgv.47.2018.08.01.05.11.07; Wed, 01 Aug 2018 05:11:22 -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 S2388809AbeHANzn (ORCPT + 99 others); Wed, 1 Aug 2018 09:55:43 -0400 Received: from nautica.notk.org ([91.121.71.147]:46572 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387568AbeHANzn (ORCPT ); Wed, 1 Aug 2018 09:55:43 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id 1B8ADC009; Wed, 1 Aug 2018 14:10:13 +0200 (CEST) Date: Wed, 1 Aug 2018 14:09:58 +0200 From: Dominique Martinet To: Greg Kurz Cc: piaojun , "akpm@linux-foundation.org" , Linux Kernel Mailing List , v9fs-developer@lists.sourceforge.net Subject: Re: [PATCH] net/9p/trans_virtio.c: add a terminal char for mount tag Message-ID: <20180801120958.GA571@nautica> References: <5B6164F6.60004@huawei.com> <20180801081157.GA20127@nautica> <5B616E3B.4050205@huawei.com> <20180801125222.3ba39416@bahia.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180801125222.3ba39416@bahia.lan> 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 Greg Kurz wrote on Wed, Aug 01, 2018: > So this patch basically turns chan->tag into a nul terminated string, > which is indeed more convenient and robust. Maybe you can update the > rest of the code accordingly and drop chan->tag_len then ? If we can use that to simplify some other part of the code, that's certainly more appealing to me :) > FWIW, 9P strings received from the client are also converted to > nul terminated strings: Oh, good to know; I guess that makes sense when these strings come and go from/to other components of the kernel that likely expect that. -- Dominique