Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10067961rwp; Thu, 20 Jul 2023 14:08:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGiABx4hSK/Jwo+eoeSofhLiMxaSxefBwh/HpIa4I0QCS7quP2rY2Vl4pIe05KKtfxFdWnG X-Received: by 2002:a17:907:a043:b0:99b:5e5f:1667 with SMTP id gz3-20020a170907a04300b0099b5e5f1667mr1279541ejc.15.1689887314404; Thu, 20 Jul 2023 14:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689887314; cv=none; d=google.com; s=arc-20160816; b=K/BVAwkNzfR6GJFg+2riDlX1ysGGLl8W6Ol6zvzkjQ95aJSJfLIEtGmIZAQXh8Rg+t PZC7tmoXBgsF374p9rGs5NP1MDrsuQVmeARUWlqTgAGiXegkdli6ajENorEL6RkO179v gJSlU9OZ+w4+ciCF+S1bkFVpqLgtuAmvhfdCrRnxpNn4WbmzqpHjdOiHxvoaKRj+lQZx 5c4ziWOKPOkCckBwEPNrabctKXXenK4Y/gtbP1zl+8+XNZ9lq9psqTlk61OGzeoIWEfE pQ+HD8F8kOCCkJZQjeec/LrEvl4vPDQV+Skctqvn2dn/2KFZbuhT9oEPvMNx6egALaAR QzKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=C75mCxqhtBAnQ1t1HpoX49ONkN2ukxvarFe0dywSwTM=; fh=lyJp/RaN/ZJgvVsm5IBlvLePlIFgfwT4ausn+Sqdiz0=; b=O5VAmcYXpjv37JaDixOqth4mg2HTR/zIhTqXEDMGn+vjTITpwoH988lZ/HvPg4aLIc mlh4sp254u1XJJfBx1/paNxjHHwbvC0fWESlAXQ4uqrD3pds9xf5UJn18iinXzJ4gcyb ej30j772zD0u8RQr8+5IqiSjEG8Fi0X/cMV7b3kGJIankrpw9vjanXq0iO/MhxOk6HBa TYUcDW6m80DxGOKaIVXfpuE+imjhmQdgjNpK8ovk558ouSRnDHS8l6AZ0o6bxrFf7W8a s7kJip9Wi1jwyYvTQjXadLN39XzvAgCIfR46jZg8syg6rVNspFu2v+9Kqpy76j2oYhA4 WcMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KStJnafv; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n23-20020a170906379700b00988be9d8c53si1227275ejc.946.2023.07.20.14.08.07; Thu, 20 Jul 2023 14:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KStJnafv; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229492AbjGTU4Z (ORCPT + 99 others); Thu, 20 Jul 2023 16:56:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjGTU4Y (ORCPT ); Thu, 20 Jul 2023 16:56:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E647E1999 for ; Thu, 20 Jul 2023 13:56:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 79FDE61BBD for ; Thu, 20 Jul 2023 20:56:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2C47C433C8 for ; Thu, 20 Jul 2023 20:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689886582; bh=sYaN5iU1O9Qq9d0sWY6sNPBgeCTfRBwFJAEzCDd5OCE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KStJnafvWnPlA1gkMeKMxsY5stRhlKbsRDCfcv0UUdJ1QMWa1v+Z9WC2AIjBrpGGJ nVJh48FHaueOMlpfoz0aGYJPoiBSH9UkdKbUlybactqYmZdWHLjp6LmS+J3JevtlLw Ft7Ct+OR64DGF579E5XqWshq+u1NmbUNlUNpCy4/+Ca9ogGNx3+NRuFkbI53kXMpWe 7j4XIuTvtNzKNChUu2QJXAGsbknmSiApBw3Om68xKnV7mJ0wXWdnyj7x28wEdpLZkO iQ1v3RbtQsogHqnhzuXWkxD8Fss1tdlZy8PVDlUxK10dWjN8S5EaZU2cDBasHA7tDu eS5brULUAM4uA== Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-40398ccdaeeso9433721cf.3 for ; Thu, 20 Jul 2023 13:56:22 -0700 (PDT) X-Gm-Message-State: ABy/qLZkbTnKkOlQUOCPRT5QMhCPntKp1WSVvSmWAlKL8sdX9SiD0mqc LgRdSs1e1r5WMxtihkq9UOCq3tYXlnIwM/okpcA= X-Received: by 2002:ac8:5c01:0:b0:400:8d99:48db with SMTP id i1-20020ac85c01000000b004008d9948dbmr233414qti.41.1689886581899; Thu, 20 Jul 2023 13:56:21 -0700 (PDT) MIME-Version: 1.0 References: <6901cae4-a257-62dd-64fa-b4f201fc1b07@gmail.com> In-Reply-To: <6901cae4-a257-62dd-64fa-b4f201fc1b07@gmail.com> From: Anna Schumaker Date: Thu, 20 Jul 2023 16:56:06 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] nfs: fix redundant readdir request after get eof To: Kinglong Mee Cc: Benjamin Coddington , Linux NFS Mailing List , Trond Myklebust Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Jul 19, 2023 at 9:14=E2=80=AFPM Kinglong Mee wrote: > > > > On 2023/7/19 9:24 PM, Benjamin Coddington wrote: > > On 18 Jul 2023, at 8:44, Kinglong Mee wrote: > > > >> When a directory contains 17 files (except . and ..), nfs client sends > >> a redundant readdir request after get eof. > >> > >> A simple reproduce, > >> At NFS server, create a directory with 17 files under exported directo= ry. > >> # mkdir test > >> # cd test > >> # for i in {0..16} ; do touch $i; done > >> > >> At NFS client, no matter mounting through nfsv3 or nfsv4, > >> does ls (or ll) at the created test directory. > >> > >> A tshark output likes following (for nfsv4), > >> > >> # tshark -i eth0 tcp port 2049 -Tfields -e ip.src -e ip.dst -e nfs -e > >> nfs.cookie4 > >> > >> srcip dstip SEQUENCE, PUTFH, READDIR 0 > >> dstip srcip SEQUENCE PUTFH READDIR > >> 909539109313539306,2108391201987888856,2305312124304486544,25663354524= 63141496,2978225129081509984,4263037479923412583,4304697173036510679,466670= 3455469210097,4759208201298769007,4776701232145978803,5338408478512081262,5= 949498658935544804,5971526429894832903,6294060338267709855,6528840566229532= 529,8600463293536422524,9223372036854775807 > >> srcip dstip > >> srcip dstip SEQUENCE, PUTFH, READDIR 9223372036854775807 > >> dstip srcip SEQUENCE PUTFH READDIR > >> > >> The READDIR with cookie 9223372036854775807(0x7FFFFFFFFFFFFFFF) is > >> redundant. > >> > >> Signed-off-by: Kinglong Mee > > > > Weird, I never got a copy from linux-nfs. The plain-text version of t= his > > is whitespace damaged, but the HTML version looks right. > > > > Reviewed-by: Benjamin Coddington > > Anna, > > Sometimes my email client cannot send email correctly, > so I send this path at web gmail. Ah, I bet that's why `b4 shazam` is having trouble finding the patch if I go to apply it. > > Are you OK for this HTML version? > If not, I will resend it through my email client. What email client are you using? I've had good luck using Documentation/process/email-clients.rst for setting up clients to send and receive patches. Have you tried using `git send-email` at all? It would be great if you can repost a plain-text version instead of html. Thanks, Anna > > thanks, > Kinglong Mee