Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2026287rdh; Tue, 26 Sep 2023 10:03:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOaBEtBgYDrucKz1DSBbWxW76vaiMeHvOv5rv8lVaIgSkH2c+PHuBpXMW9MKLzE9sCgME3 X-Received: by 2002:a05:6a00:b8d:b0:68f:ea5d:1f70 with SMTP id g13-20020a056a000b8d00b0068fea5d1f70mr10077587pfj.14.1695747834486; Tue, 26 Sep 2023 10:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695747834; cv=none; d=google.com; s=arc-20160816; b=DKlo+nN+Zs/8hMziAK/HJsGa/IOU34Chjx7jEp4ZdpWplVg2TYTKRyOt9U6uYXyNLx 85/hT6VAZgxITq1aDCErTzYJyLtn+H9+MVMYRhW8mHkjiyxOt9GPoe/WCB3/gbpS3QEy 4jQcbbJesTbz9LZCd9BpzvFqhf4n+CAusY8ov8mKhpw60Ogs7wHplHY7pDYPuqM5phpf 6J7z+VtuF9TaL3ueaSH51zdPua7x/fjFqnlex70Te7m82G6x+FUEjliS8/zevEBErOrm vZ0QnXy1eWI6/aBA8udmsTboXapF9YRjA0kn8Ql8xJEX1gjDhzTObunQunNSczdxcLPK Po9Q== 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=s8zJ2VmxxAlr5aGsCnipQOqUlfIXcMoInhIqP19kXsQ=; fh=fX1XSVtPCCA20BkCBS4VqRMuO4xoM4y5xYpFRS92Brk=; b=uUcPc2zhmo9WZadsIh/3J2U7duf97+3ew58BAFpFFK+G6YWPHHjpQhyGCSqpSqZLL/ /LKcEuG+YCf4jp2bV/pDOsJVTGavqWPBdCYroFRqERSWw8BPmu/NKWluWle8T34HU4qq W9Ja/scgJCoqY1+8B/PU3oWklsooXaKvnuGAm+Qn7iC7bCTYBfawO6hnpFpjYd6CDDe7 9T3ICgx4qjZlC3mCSE/2483K+ef7Bzdmy6NzIO8uZjEYk5YkyZFLkFfmoAsD7x+c/Duu jx3HCIzvrADvR4ax426vnPtkGsQ+Dgg3XwC2XvN/bK2KHKIDO7S+AnrLgUsIxUeRAAS7 GKHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=W3iEcTT8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id i14-20020a633c4e000000b00578c3a1dbdcsi12894963pgn.71.2023.09.26.10.03.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=W3iEcTT8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 15D8E8042D15; Tue, 26 Sep 2023 07:31:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjIZOb0 (ORCPT + 99 others); Tue, 26 Sep 2023 10:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234339AbjIZObZ (ORCPT ); Tue, 26 Sep 2023 10:31:25 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B97E11F for ; Tue, 26 Sep 2023 07:31:18 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2bffc03c588so26404311fa.1 for ; Tue, 26 Sep 2023 07:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; t=1695738676; x=1696343476; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=s8zJ2VmxxAlr5aGsCnipQOqUlfIXcMoInhIqP19kXsQ=; b=W3iEcTT8QbF4QV5e6EU30Ja4wYJJESUz4AgKSSgnsBknp7W52AomtkMrqhhtoeYC/8 WOdu0aM116s5vrN92AvdPV6zwLfPJDF32YCz3sNYCbNmVXwtMd73dqV4qOOB5YvH4hnY QyQYr8C5mUS9qkPcLV+WbGEorOJ20OW2AyTyCQ2/yBYdpSN4nPAHukBxdLtvxQANiFg4 NxEjTvwNFYvI77GUuq+OO0gYwIm/bnBzXikHEskuBV66R0oC2KcCuXUxN0Wnc5QCq/Ar 0SVVMUJ25yv/L6nQ91lErLdgcSfeHvu66atFCFDNfenQqfXBTVxQyVYelipwpamKgvN3 xyMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695738676; x=1696343476; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s8zJ2VmxxAlr5aGsCnipQOqUlfIXcMoInhIqP19kXsQ=; b=tY4qM5FwXq4uIQfskUYDmccjG58EoUqT1h08MY27nEcF/G84pEVGKfVw1ny0eQJ/sO 9raoVlE2ciITAQaE8FXrQDoszX/ZcVGS17Zdx98cfqzWNhhnSWLnRt/qjWGzbq1aLZSM f6r1O7Q8urCy2QqF+IOXFuyuY7MCM6FqCO0co2n+IUE3t4OdnOYmShMYvxFywvZw5ua+ Xa9EQBOFd9MSnFRq490Aj/PSdgjdwjHEwZaBCNa5SjXzC5jMhN0YtQNYMm3c1kwIyKx5 03gyKlAckHN8pOuZZmKlvKURjB2tv+IhU7zh+U/8+3ZubUUblmwNwicYY6OP1mdRUI2M ms3g== X-Gm-Message-State: AOJu0YywkYUzFmskpKBmOEmv9eEJrg12hxvcoVitAFOVEyU9fUSFaJ3t 1ST+n6PDu5AyO7ozlfylk3xEOal/qYnyEiq2hCzrQyrK X-Received: by 2002:a2e:a36d:0:b0:2bf:ed94:3693 with SMTP id i13-20020a2ea36d000000b002bfed943693mr6676610ljn.0.1695738676080; Tue, 26 Sep 2023 07:31:16 -0700 (PDT) MIME-Version: 1.0 References: <20230917230551.30483-1-trondmy@kernel.org> <20230917230551.30483-2-trondmy@kernel.org> <9eda74d7438ee0a82323058b9d4c2b98f4e434cf.camel@hammerspace.com> <077cb75b44afd2404629c1388a92ca61da5092b1.camel@hammerspace.com> In-Reply-To: From: Olga Kornievskaia Date: Tue, 26 Sep 2023 10:31:04 -0400 Message-ID: Subject: Re: [PATCH 2/2] NFSv4: Fix a state manager thread deadlock regression To: Trond Myklebust Cc: "linux-nfs@vger.kernel.org" , "Anna.Schumaker@netapp.com" , "neilb@suse.de" , "schumaker.anna@gmail.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 26 Sep 2023 07:31:32 -0700 (PDT) On Fri, Sep 22, 2023 at 5:07=E2=80=AFPM Trond Myklebust wrote: > > On Fri, 2023-09-22 at 17:00 -0400, Olga Kornievskaia wrote: > > On Fri, Sep 22, 2023 at 3:05=E2=80=AFPM Trond Myklebust > > > > > > Oh crap... Yes, that is a bug. Can you please apply the attached > > > patch > > > on top of the original, and see if that fixes the problem? > > > > I can't consistently reproduce the problem. Out of several xfstests > > runs a couple got stuck in that state. So when I apply that patch and > > run, I can't tell if i'm no longer hitting or if I'm just not hitting > > the right condition. > > > > Given I don't exactly know what's caused it I'm trying to find > > something I can hit consistently. Any ideas? I mean this stack trace > > seems to imply a recovery open but I'm not doing any server reboots > > or > > connection drops. > > > > > > > If I'm right about the root cause, then just turning off delegations on > the server, setting up a NFS swap partition and then running some > ordinary file open/close workload against the exact same server would > probably suffice to trigger your stack trace 100% reliably. Getting back to this now. Thanks for v2 and I'll test. But I'm still unclear, is there a requirement that delegations have to be off for when the client has NFS over swap enabled? I always run with delegations on in ONTAP and run xfstests. I don't usually run with NFS over swap enabled but sometimes I do. So what should be the expectations? If I choose this kernel configuration, then deadlock is possible? > > I'll see if I can find time to test it over the weekend. > > -- > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.myklebust@hammerspace.com > >