Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3178888pxu; Tue, 8 Dec 2020 05:42:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpZta1GK7sEuMjqBG8xV9d/s5z5ccEizPSBFSymzqvJdx4PmYe2C41V07+kY+wJ/5Qocgt X-Received: by 2002:a17:906:7f13:: with SMTP id d19mr24031529ejr.54.1607434951888; Tue, 08 Dec 2020 05:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607434951; cv=none; d=google.com; s=arc-20160816; b=GMb071umhLY72l9c9SeToL0Pw3r9t9yNh2rKuLBK+GbnGNMF8kDbxij4gGPMEmkvK1 XDZK6XHd0W9V9GDJJurOaRR31/eH2LZUpxr3LGatT2CQgjkwOSr3fu6GhXt2R85G98hi G9gfJnKH7tmB4Q6fnrBMG21cKEAi5B54kqvfDK1OtCKzUVWwucE3d6lccO/F5PSjrQEp kkhHe4ZR3x2Qa4WMzlK248MnhcnRRyxLlUQ48/OXxIWW9B0ayBjmEeTRZ0KxUU6hiCfD KM4iVu0XzUsmWeGzIPvwjGDTb+91kqN5VsHZevqfz06mQPW6x5XvomQC6asR0mk1SwXA c3cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=7tyPOgR6LAeVQTYBfoFUC/YN2JOK5Y9NpDSdcaSBJWo=; b=E21ThiOUFaSjj9FP41cyOvMHBZjN3wLk/DRoHHXu65QwVLKjbHHmugKcp5wZFLD8gE VGUJGZltwZMVq6bBwuz3xDBjTNg8ZHSnli2kPSNVkH/0MZjHUEHkTmzJJiWWNVmuA9oh OxLxfbS65KTFj8uLk8d+jb3dewpuaYa4VLT0FTCsdRiRLsJd/WaO6ki15QWANEoqw5Ix Ce86k5T3TRXWHEVbYUQEEksYSVJPNaQu7mJbKh9xGv+kDZyZvadJxWA4M9jBltc79x7h VXXXFluuPyeWccnWC5Utw/q7xKBhNbmJsCR+bg+KM+kbQmtKoeK6XLWqQEOtcQOND7o+ kVWg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si9552005edm.79.2020.12.08.05.42.02; Tue, 08 Dec 2020 05:42:31 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728786AbgLHNjJ (ORCPT + 99 others); Tue, 8 Dec 2020 08:39:09 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:33448 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728318AbgLHNjI (ORCPT ); Tue, 8 Dec 2020 08:39:08 -0500 Received: by mail-ed1-f67.google.com with SMTP id k4so17652677edl.0 for ; Tue, 08 Dec 2020 05:38:52 -0800 (PST) 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=7tyPOgR6LAeVQTYBfoFUC/YN2JOK5Y9NpDSdcaSBJWo=; b=k1WzChEdy7UeD+/ivUsAO7jeNnR9mXB8hRymv9qo18VlF5IfHc+F8fQiYgDXu214Qe jlfBJGI8yxtZTIu4Tq2IT3R1qBpzS/MX97BQCnQiorDP0InTYVI/LGzhLeEt0C9zIsT1 a2lKJTTGUnBOfqhpbLHQqRZvrSonpGzO3dRbmwA6CumbGxUMIuubBq/KuJ/eS+l4pq2r WHEtQGJXfOIiS+MDBECsLzWDGxhEARlH3eEVgd9SWbWRMZSZsE4OmosMs+ubMPerU6Jf kIvk5axCJINTLG3NcUKB39Jwf7iePpzrQTilv4WvXX+pu0bSaHEtAyb9Hjio54a9c4lA Ucfg== X-Gm-Message-State: AOAM531Z9nRPkjb17JvEwP8KP2JoILb6JrYJ0PwqG2wmG3biNf7Y2Wfg ibC1qc6MvQe9seiY92mU8ygf4GM6uUEK3FENFtlSYgb6 X-Received: by 2002:a50:c315:: with SMTP id a21mr24734139edb.50.1607434706581; Tue, 08 Dec 2020 05:38:26 -0800 (PST) MIME-Version: 1.0 References: <20201203201841.103294-1-Anna.Schumaker@Netapp.com> <852166252.2305208.1607096860375.JavaMail.zimbra@desy.de> <1368097703.2347355.1607122227971.JavaMail.zimbra@desy.de> <1275679128.2737941.1607354764999.JavaMail.zimbra@desy.de> <1013351928.2746343.1607356477964.JavaMail.zimbra@desy.de> <1111815800.2958679.1607431154107.JavaMail.zimbra@desy.de> In-Reply-To: <1111815800.2958679.1607431154107.JavaMail.zimbra@desy.de> From: Anna Schumaker Date: Tue, 8 Dec 2020 08:38:10 -0500 Message-ID: Subject: Re: [PATCH 0/3] NFS: Disable READ_PLUS by default To: "Mkrtchyan, Tigran" Cc: linux-nfs , Olga Kornievskaia Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Tigran, On Tue, Dec 8, 2020 at 7:39 AM Mkrtchyan, Tigran wrote: > > > > Hi Anna et al., > > I run some more test and found two issues: > > 1. our server returns on getdeviceinfo notification bitmap of size 2. > Though, only the first element has non zero values, some how this > makes client unhappy, probably due to definition on decode_getdeviceinfo_maxsz > that expects bitmap length to be 1. > > 2. The client uses READ_PLUS to DS despite the fact that flex file > layout stated that DS supports nfs v4.1 > > Network File System, Ops(3): SEQUENCE, PUTFH, READ_PLUS > [Program Version: 4] > [V4 Procedure: COMPOUND (1)] > Tag: > minorversion: 1 > Operations (count: 3): SEQUENCE, PUTFH, READ_PLUS > Opcode: SEQUENCE (53) > Opcode: PUTFH (22) > Opcode: READ_PLUS (68) > StateID > offset: 0 > count: 10016 > [Main Opcode: READ_PLUS (68)] Thanks for the update! You're right, READ_PLUS to the DS should not be happening. I'll look into why it is. Anna > > > I should re-run some tests with Trond's tree as I was checking the > DS errors in during the test I run last weeks. > > Regards, > Tigran. > > ----- Original Message ----- > > From: "Tigran Mkrtchyan" > > To: "Anna Schumaker" > > Cc: "schumaker anna" , "linux-nfs" , "Olga Kornievskaia" > > > > Sent: Monday, 7 December, 2020 16:54:37 > > Subject: Re: [PATCH 0/3] NFS: Disable READ_PLUS by default > > > Sorry, completely confused. It the same commit as before > > c567552612ece787b178e3b147b5854ad422a836 > > > > Tigran. > > > > > > ----- Original Message ----- > >> From: "Tigran Mkrtchyan" > >> To: "Anna Schumaker" > >> Cc: "schumaker anna" , "linux-nfs" > >> , "Olga Kornievskaia" > >> > >> Sent: Monday, 7 December, 2020 16:26:05 > >> Subject: Re: [PATCH 0/3] NFS: Disable READ_PLUS by default > > > >> Hi Anna > >> > >> I re-run bisect on your tree with tag nfs-for-5.10-1 as bad and 5.9.0 as good. > >> > >> The bisect point to commit a14a63594cc2e5bdcbb1543d29df945da71e380f, which makes > >> more sense. > >> > >> [centos@os-46-nfs-devel linux-nfs]$ git bisect good > >> c567552612ece787b178e3b147b5854ad422a836 is the first bad commit > >> commit c567552612ece787b178e3b147b5854ad422a836 > >> Author: Anna Schumaker > >> Date: Wed May 28 13:41:22 2014 -0400 > >> > >> NFS: Add READ_PLUS data segment support > >> > >> This patch adds client support for decoding a single NFS4_CONTENT_DATA > >> segment returned by the server. This is the simplest implementation > >> possible, since it does not account for any hole segments in the reply. > >> > >> Signed-off-by: Anna Schumaker > >> > >> fs/nfs/nfs42xdr.c | 141 ++++++++++++++++++++++++++++++++++++++++++++++ > >> fs/nfs/nfs4client.c | 2 + > >> fs/nfs/nfs4proc.c | 43 +++++++++++++- > >> fs/nfs/nfs4xdr.c | 1 + > >> include/linux/nfs4.h | 2 +- > >> include/linux/nfs_fs_sb.h | 1 + > >> include/linux/nfs_xdr.h | 2 +- > >> 7 files changed, 187 insertions(+), 5 deletions(-) > >> > >> > >> Best regards, > >> Tigran > >> > >> ----- Original Message ----- > >>> From: "Tigran Mkrtchyan" > >>> To: "Olga Kornievskaia" > >>> Cc: "schumaker anna" , "linux-nfs" > >>> , "Anna Schumaker" > >>> > >>> Sent: Friday, 4 December, 2020 23:50:27 > >>> Subject: Re: [PATCH 0/3] NFS: Disable READ_PLUS by default > >> > >>> I agree with Olga, especially that disabling doesn't fixes my issue. > >>> Unfortunately I have no idea how kernel's vm works, but I am > >>> ready to test as many times as needed. > >>> > >>> Thanks, > >>> Tigran. > >>> > >>> ----- Original Message ----- > >>>> From: "Olga Kornievskaia" > >>>> To: "Tigran Mkrtchyan" > >>>> Cc: "schumaker anna" , "linux-nfs" > >>>> , "Anna Schumaker" > >>>> > >>>> Sent: Friday, 4 December, 2020 21:00:32 > >>>> Subject: Re: [PATCH 0/3] NFS: Disable READ_PLUS by default > >>> > >>>> I object to putting the disable patch in, I think we need to fix the problem. > >>>> > >>>> The current problem is generic/263 is failing because the end of the > >>>> buffer is corrupted since we lost the bytes when hole was expanded. I > >>>> don't know what the solution is: (1) hole expanding handling needs to > >>>> be fixed to not lose data or (2) we shouldnt be reporting that we read > >>>> the bytes we lost. > >>>> > >>>> On Fri, Dec 4, 2020 at 10:49 AM Mkrtchyan, Tigran > >>>> wrote: > >>>>> > >>>>> Hi Anna, > >>>>> > >>>>> I see problems with gedeviceinfo and bisected it to > >>>>> c567552612ece787b178e3b147b5854ad422a836. > >>>>> The commit itself doesn't look that can break it, but might > >>>>> be can help you find the problem. > >>>>> > >>>>> What I see, that after xdr_read_pages call the xdr stream points > >>>>> to a some random point (or wrong page) > >>>>> > >>>>> Regards, > >>>>> Tigran. > >>>>> > >>>>> > >>>>> ----- Original Message ----- > >>>>> > From: "schumaker anna" > >>>>> > To: "linux-nfs" > >>>>> > Cc: "Anna Schumaker" > >>>>> > Sent: Thursday, 3 December, 2020 21:18:38 > >>>>> > Subject: [PATCH 0/3] NFS: Disable READ_PLUS by default > >>>>> > >>>>> > From: Anna Schumaker > >>>>> > > >>>>> > I've been scratching my head about what's going on with xfstests generic/091 > >>>>> > and generic/263, but I'm not sure what else to look at at this point. > >>>>> > This patchset disables READ_PLUS by default by marking it as a > >>>>> > developer-only kconfig option. > >>>>> > > >>>>> > I also included a couple of patches fixing some other issues that were > >>>>> > noticed while inspecting the code. These patches don't help the tests > >>>>> > pass, but they do fail later on after applying so it does feel like > >>>>> > progress. > >>>>> > > >>>>> > I'm hopeful the remaning issues can be worked out in the future. > >>>>> > > >>>>> > Thanks, > >>>>> > Anna > >>>>> > > >>>>> > > >>>>> > Anna Schumaker (3): > >>>>> > NFS: Disable READ_PLUS by default > >>>>> > NFS: Allocate a scratch page for READ_PLUS > >>>>> > SUNRPC: Keep buf->len in sync with xdr->nwords when expanding holes > >>>>> > > >>>>> > fs/nfs/Kconfig | 9 +++++++++ > >>>>> > fs/nfs/nfs42xdr.c | 2 ++ > >>>>> > fs/nfs/nfs4proc.c | 2 +- > >>>>> > fs/nfs/read.c | 13 +++++++++++-- > >>>>> > include/linux/nfs_xdr.h | 1 + > >>>>> > net/sunrpc/xdr.c | 3 ++- > >>>>> > 6 files changed, 26 insertions(+), 4 deletions(-) > >>>>> > > >>>>> > -- > > > > > > > 2.29.2