Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10296720rwp; Thu, 20 Jul 2023 18:42:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQuGcweRkU1x5aHM4Tf/mzbuz2Kc6LdbBDBVRTRdxjwcOxFS40l5jWerGcyEy6ykQ/NT7+ X-Received: by 2002:a05:6102:39a:b0:443:5809:ec21 with SMTP id m26-20020a056102039a00b004435809ec21mr375237vsq.17.1689903749981; Thu, 20 Jul 2023 18:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689903749; cv=none; d=google.com; s=arc-20160816; b=yIQ8juAxryxeWJ0mVlNeqv59MJkygfjUNX8EJ3pb5ZR69GtYiYramSk382ZSXpBf8r yjJAMesIARQSx4cCwv175w9y0BWN6ocYXmNn3kfKXpLK6igh6J7KxVGFGGAnzwArl8gk gdsHRjHO9QeQ4x+DADQXIQo1glp4/fmgf8T61C5vaEKk/5wGeags3E1x+ZCtyAnYsAnw PbPIyFLOoOiHexEMnPzBsQJAwGW/AaS/+prhVZnHWYqjNdu1WTzGMuZwLr6niyTY+7XQ XH+Ub6ze0lujg4JnyVmCuDSp4mpx3fevKWe1JZIhFag7HZiEuiGCMdcMkQnxnc/psNOb WUxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tOqkJZlHF0HdcmY1OvxRWo8gX4FlV/RofXNPV7GXnic=; fh=jB0G8r4A8AQ6cfMZDb3Z5thtPIqJSU4Yt+VwHQMthPw=; b=ka46XOKEjQX1Vc5tpJzmwgVVATUpqQnmLv06LKEoA8kDNh3W1BnBSzwMUNzMTxk3E5 M4Nyu3l+gfq6RT8GZIw52Qib1G/MAmE81MHl085RR5ZrdhYvSzQi1seIvU/WbpjhzCRP Kir4S65woD4fDGDufqSyr9jNffRbOEYfLiinO43iDhAzpvnYZFglyXfzEJyJl/iGkyxa DAvbFgMWjryyy6vOHT6+0z84ymPlE0h3rvbnUuk8OpTv9REo+C7Ls2xPs8NQ26x/TCuz xVaazCWW8WyfTWw7B3q5qKx2TzQTuRTADNqQjkAqbX54xkqKgKCk7nCxmAVArGqv9+qj LEFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=futrHgk+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020a63d904000000b00557373e6f7asi1904164pgg.515.2023.07.20.18.42.11; Thu, 20 Jul 2023 18:42:29 -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=@gmail.com header.s=20221208 header.b=futrHgk+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbjGUB0p (ORCPT + 99 others); Thu, 20 Jul 2023 21:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjGUB0o (ORCPT ); Thu, 20 Jul 2023 21:26:44 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC1B51982 for ; Thu, 20 Jul 2023 18:26:42 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3158a5e64b6so1151907f8f.0 for ; Thu, 20 Jul 2023 18:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689902801; x=1690507601; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tOqkJZlHF0HdcmY1OvxRWo8gX4FlV/RofXNPV7GXnic=; b=futrHgk++EFwdNRXLbFCPWUcPGuELORyqyuTT40kGj8azkIBWl+U8Kh3ZfpxBdPZfE qiGNdhiJI4SE6pqilyM1ewhsBA2S64hXYsFLV4/abC65H60Nh4EEj1Eqw2WP+28wM9cb u88S0M4c3aZGdbpqba/e/BCO9Kicvf3Y7CSdo4mT6IwZaxVdFsB74bBSo2+nCWHKpMpX fbZtqg4EoHx8VWa7MAxlTeznMMzreilinUveE8kPNgJt+IartK/n/I7kK6CbevYELK96 EQxO7oL+BO4nRAa2kveRJAF94B5Zj/QIYJRKooqhYk130/+5AefaDebSnjWTd7xHp+yR 1XiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689902801; x=1690507601; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tOqkJZlHF0HdcmY1OvxRWo8gX4FlV/RofXNPV7GXnic=; b=XIbhFe/cGGcDYfFtxbi5HxwPuhJnjgAxTxJnpYPsfGQKRSo2yXoLYfzdNXxt2kxqan mj5owDzhBPZbeg2/wIlDCPVx/rPM5Nzq5YyqFVebz1cp4ltgOu7vVuZINgwgO7oO/k4h i9yMIDXnT+erY3+z2JYeTe1axaWc7oMRS3BDxcoVfqgc6vC310ijMXbiyi1jwpoucnDZ 3ysOJbJ2RX6wm4U2ju0+uhNV/IwQVM8nVELHDZpb3W9YmeacL4Af2U/nZKx1BTHBbJ/3 h5c8zGyrS6NJDVuWl9GdhuOQ5wH9P2gmmSvNZai4sxeh2MNVJ5DznEA/XDHNKZRckGx2 ZzAg== X-Gm-Message-State: ABy/qLax1sEAYEsyeiZXRdmlJ/lvm+ixM7qsRhLWiA97aCUQbML7EVPV 2XW1jVGcvde3DLLk8PQXWZw= X-Received: by 2002:adf:d851:0:b0:315:8f4f:81b1 with SMTP id k17-20020adfd851000000b003158f4f81b1mr281414wrl.50.1689902801227; Thu, 20 Jul 2023 18:26:41 -0700 (PDT) Received: from [0.0.0.0] ([95.179.233.4]) by smtp.gmail.com with ESMTPSA id u5-20020a5d5145000000b00314145e6d61sm2745680wrt.6.2023.07.20.18.26.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jul 2023 18:26:40 -0700 (PDT) Message-ID: Date: Fri, 21 Jul 2023 09:26:35 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] nfs: fix redundant readdir request after get eof Content-Language: en-US To: Anna Schumaker Cc: Benjamin Coddington , Linux NFS Mailing List , Trond Myklebust References: <6901cae4-a257-62dd-64fa-b4f201fc1b07@gmail.com> From: Kinglong Mee In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 2023/7/21 4:56 AM, Anna Schumaker wrote: > On Wed, Jul 19, 2023 at 9:14 PM 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 directory. >>>> # 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,2566335452463141496,2978225129081509984,4263037479923412583,4304697173036510679,4666703455469210097,4759208201298769007,4776701232145978803,5338408478512081262,5949498658935544804,5971526429894832903,6294060338267709855,6528840566229532529,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 this >>> 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? I use Thunderbird client. Thanks for your advise, I will try using `git send-email`. > It > would be great if you can repost a plain-text version instead of html. A new plain-text version path have been resend. thanks, Kinglong Mee