Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp226119pxa; Wed, 26 Aug 2020 09:00:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw23TwcI1//EEUU/NMPXoYuNNz72aQd1Z5KwyK4Q+JTAQVK/eurzslp0VIuvmkyjwSMvbdu X-Received: by 2002:a50:fd94:: with SMTP id o20mr12259844edt.357.1598457625577; Wed, 26 Aug 2020 09:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598457625; cv=none; d=google.com; s=arc-20160816; b=vqKO4ui05oFs6KPwj1KeHO2GJoXY32+M7drVJBuUq8Ahqf1lVxDjtRT8vA9ETDG2U/ LHqcTY0A0T4GPmXnVIiynRm0/4DgbKPrIAk2n+hK41hB791SSd+Xlru7/QduaSOkqiLW wY+xtjBMkAGqwRFvadQ51fmOlq8N2aYG3+eWxZNZW9SEwUelb5Pv5ONHnMFPa89QjzpV drWVaoOTT2Sx5kzlBn9gH3gn9ehTs+sVYR65rmRVclZ/C5FrXE9cOS+UvnxBwCZF+i8E QjnCNy+LXpRYZmVGD5Wee4lpe7ygDJitnDcryGu6fE0+kFum8bdEh1zCT79JQ3+sXC/i XsfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9/FLHFQnrN/NECm2CGcXbYzIxrsXLVKgEdJc4m+nzMU=; b=dzR0K9TMlm9Aq2TieoOUNoa1/NfG/SqmWew+JTskx+V+XhzOaK3jWlt8XtFLJZgcct PwAD2qZ7q6yqgyiNByByImQB5WtweanXAoLohZfHv6/bqBKpbQVe7ov9XgbMSbOe1ML3 c3nOi4o87hSUZqoI2O7Py11AtzxBH59YBkl13SNI/Ub8tmO8fpnRQeZKTag1b2JCjRoG co8QgdFLLCdR+V2ZTy1uBqh/dRN/rdoZw3BCy9e37c0MrofVrcXyDbvL+NRCHjX10hnJ tH+BK0/Gk845kltaLM4C6J7D/SmTtgrbrZWnUUoJLApeOezMHrlvtYmdczlnXxvl37m5 RKXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQTVEdqV; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o27si1621901edi.35.2020.08.26.08.59.52; Wed, 26 Aug 2020 09:00:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQTVEdqV; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 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 S1726723AbgHZP7r (ORCPT + 99 others); Wed, 26 Aug 2020 11:59:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726783AbgHZP7p (ORCPT ); Wed, 26 Aug 2020 11:59:45 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BF47C061574 for ; Wed, 26 Aug 2020 08:59:33 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id d11so3528682ejt.13 for ; Wed, 26 Aug 2020 08:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9/FLHFQnrN/NECm2CGcXbYzIxrsXLVKgEdJc4m+nzMU=; b=RQTVEdqV64gIMsMS/gu5eC4Cg9K6T4B+M2++baDy+v6FxX1Mst3PHnU2LU5cmiwG27 BD/Y+JeD3m4fNAqZY3yXkmhD9Qegbd3re2WPnKiynFYwp809L6af4JcRy1rWln9FsbpT 6da4bcLZ298qu01IHYId0bTuc2MXoUynIzhNhvudS1EJC3/IC7OIsQG8svrMZwYwhOqx WEWyL+vs/fDkvXDZj13iDdqI5u+XLFwVgoy0n4sEH+/jphAMvvXLZ4y1s5i27nYw7sJ1 pg5DpWfqFKOmNCu/9ugW2a0HxtunMzpR7U+amg+HmoSbumSX9UfQwPmlOGbKVjuTI8hV s6Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9/FLHFQnrN/NECm2CGcXbYzIxrsXLVKgEdJc4m+nzMU=; b=U30QiYfcX7Fq36X7DP4pvSrjAnfb0pAhKEpqTK4t8mNMsri9dmluGU3vOPbKmMF2cK p2AIALJYWSG8H5Wjdjee2mdUIYXr7AWprPizMFBv91POeoeNmyTEHTqq7jz2Mw6kMBTY ua6Mz/oXhD36HeBFCb05sWv9jd4t52H57Xz2S81QR8h8qHcycAHon9J/XQnC5KIX/H2y Ys/2+fIroJgs6AmIV+4Rj+jFpxG/nMyAkinR5/7mEiGZWBtCOqqBmelD3iQPBba/9C91 tdXqCSSJte7f9+pNzTZquYNE7ZlhtvTFJYZaW2D0Zw3/CLNdhKHRkHbnHIb8q9W2QPVl fjzw== X-Gm-Message-State: AOAM5313lKQElrTuSTyhOVWeY6sN9ms0dTBix677zS4SZXLV/SDjZ9UI I3CUyU5D0sJhLe5xo4rN0guwveyqQP42KxQvATU= X-Received: by 2002:a17:907:37b:: with SMTP id rs27mr9506847ejb.0.1598457571901; Wed, 26 Aug 2020 08:59:31 -0700 (PDT) MIME-Version: 1.0 References: <20200821015036.bn3yqiiuvunfxb42@xzhoux.usersys.redhat.com> <20200825212647.GB1955@fieldses.org> <20200825215357.GC1955@fieldses.org> In-Reply-To: <20200825215357.GC1955@fieldses.org> From: Olga Kornievskaia Date: Wed, 26 Aug 2020 11:59:20 -0400 Message-ID: Subject: Re: 5.9 nfsd update breaks v4.2 copy_file_range To: "J. Bruce Fields" Cc: Murphy Zhou , Chuck Lever , linux-nfs , "J. Bruce Fields" Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Aug 25, 2020 at 5:53 PM J. Bruce Fields wrote: > > On Tue, Aug 25, 2020 at 05:26:47PM -0400, J. Bruce Fields wrote: > > On Fri, Aug 21, 2020 at 09:50:36AM +0800, Murphy Zhou wrote: > > > It's easy to reproduce by running multiple xfstests testcases on localhost > > > NFS shares. These testcases are: > > > generic/430 generic/431 generic/432 generic/433 generic/565 > > > > > > This reproduces only on NFSv4.2. > > > > > > Error log diff sample: > > > > > > --- /dev/fd/63 2020-08-09 22:46:02.771745606 -0400 > > > +++ results/generic/431.out.bad 2020-08-09 22:46:02.546745248 -0400 > > > @@ -1,15 +1,22 @@ > > > QA output created by 431 > > > Create the original file and then copy > > > +cmp: EOF on /mnt/testdir/test-431/copy which is empty > > > Original md5sums: > > > ab56b4d92b40713acc5af89985d4b786 TEST_DIR/test-431/file > > > -ab56b4d92b40713acc5af89985d4b786 TEST_DIR/test-431/copy > > > +d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/copy > > > > When I check the files server-side after reproducing, the file "copy" > > has the correct contents. So I guess the problem is that the client > > cache is out of date. The difference with commit 94415b06e is that the > > client holds read delegations on both source and destination, throughout > > the COPY operation. > > Olga, do you know what the client's doing in this case? > > It seems to me that it should be invalidating its cache of the > destination range after a COPY, regardless of whether it holds a > delegation on the destination. (Either that or updating the cache of > the destination to hold the copied data, if it's confident its cache of > the source range is up to date.) It's on my todo list to reproduce this and see what's going on. > > --b. > > > > > --b. > > > > > Small copies from various points in the original file > > > +cmp: EOF on /mnt/testdir/test-431/a which is empty > > > +cmp: EOF on /mnt/testdir/test-431/b which is empty > > > +cmp: EOF on /mnt/testdir/test-431/c which is empty > > > +cmp: EOF on /mnt/testdir/test-431/d which is empty > > > +cmp: EOF on /mnt/testdir/test-431/e which is empty > > > +cmp: EOF on /mnt/testdir/test-431/f which is empty > > > md5sums after small copies > > > ab56b4d92b40713acc5af89985d4b786 TEST_DIR/test-431/file > > > -0cc175b9c0f1b6a831c399e269772661 TEST_DIR/test-431/a > > > -92eb5ffee6ae2fec3ad71c777531578f TEST_DIR/test-431/b > > > -4a8a08f09d37b73795649038408b5f33 TEST_DIR/test-431/c > > > -8277e0910d750195b448797616e091ad TEST_DIR/test-431/d > > > -e1671797c52e15f763380b45e841ec32 TEST_DIR/test-431/e > > > -2015eb238d706eceefc784742928054f TEST_DIR/test-431/f > > > +d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/a > > > +d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/b > > > +d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/c > > > +d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/d > > > +d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/e > > > +d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/f > > > d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-431/g > > > > > > Bisecting shows the first "bad" commit is: > > > > > > commit 94415b06eb8aed13481646026dc995f04a3a534a > > > Author: J. Bruce Fields > > > Date: Tue Jul 7 09:28:05 2020 -0400 > > > > > > nfsd4: a client's own opens needn't prevent delegations > > > > > > I'm wondering if you're already aware of it, this simple report is for > > > your info. > > > > > > Thanks. > > > > > > -- > > > Murphy