Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35727707rwd; Mon, 10 Jul 2023 11:36:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDlaYC1hAJ+hT6LXDf6sshB+DlXJmEIBbyI3074GFqlHJLthU53p3ZJc24bsmEaW3Jdrhs X-Received: by 2002:a17:907:1b89:b0:988:15f4:fdba with SMTP id mz9-20020a1709071b8900b0098815f4fdbamr17374562ejc.14.1689014185399; Mon, 10 Jul 2023 11:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689014185; cv=none; d=google.com; s=arc-20160816; b=O63s+6lmrHYKJPTk8di693AXyKFUbC/LUlffLVkkIQqCUyHsGYUExlzY2ON2WkXFDs cryXL17JxYNcQ2YF2gkEvoupgEh1RSPbcz/lLwfJHgxFyrzUBoX9mEsSFYCPEYGWGmS9 UtSC+YKO4sQOEXxz2oNZE4IEsqniNO9UNaGveYGPXZGU+Sdpjbi/fo7FAHoKvrYvWMGi Y18wGfCULIivHx8pwtszGMzMvcl01Fj98b5chfOnpI045g1uNsetVOQygKVfDQMvD29a BSEKjhbdLBz5CWrcd+FFbVbrRvz3gm3hzJd3O1FXJrISgRKrPrn28BXb3WCU9UZjhbIp T7tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EY4ue1GwwjQhlvQ2GNYcDJeK4t0p8J/6BvsYXzZBzgs=; fh=8Pd+cu3TGWKXYyOZH5sXtVNXWHYf5aX/5eX043izhd4=; b=Z2h5ko1LxChgHAfPGokXnJh2xYzws/26OU4onoAgyqOLhIErDymd7FGaSbRkDEpCDN jrnHfmZEBT5W9t2pR04JaLz+TxxZ3grdKWwZHvNzNQ1zzOzGvm9E/Uh8lD9qEyI3VFbK 7mk4uErQBNU7y3l4naVNX6gHsqmm+sd33vNNT1krobo9odX6ZyCTd4LMEFIfrvVDFVwF hiMtiExC+fjj4I7IHcan8aOTnNzLxO/+8SWknNH8hVIWT4ClqMkvsq8nTi7hvkBQpkTD hV+4i6zMVPQPnOIFH2IgioqrzoFrbmIrIU4EfLHMoBzIQ1ooCNJ7otEseMelUyDMqy3z E5Hw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gr14-20020a170906e2ce00b00991bdc48797si182239ejb.95.2023.07.10.11.35.45; Mon, 10 Jul 2023 11:36:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231319AbjGJR2s (ORCPT + 99 others); Mon, 10 Jul 2023 13:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231674AbjGJR2q (ORCPT ); Mon, 10 Jul 2023 13:28:46 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E27FB6; Mon, 10 Jul 2023 10:28:43 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 266BE6732D; Mon, 10 Jul 2023 19:28:40 +0200 (CEST) Date: Mon, 10 Jul 2023 19:28:39 +0200 From: Christoph Hellwig To: Chuck Lever III Cc: Christoph Hellwig , Jens Axboe , "linux-block@vger.kernel.org" , Linux NFS Mailing List , Chuck Lever Subject: Re: NFS workload leaves nfsd threads in D state Message-ID: <20230710172839.GA7190@lst.de> References: <7A57C7AE-A51A-4254-888B-FE15CA21F9E9@oracle.com> <20230710075634.GA30120@lst.de> <3F16A14B-F854-41CC-A3CA-87C7946FC277@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 Only found a virtualized AHCI setup so far without much success. Can you try this (from Chengming Zhou) in the meantime? diff --git a/block/blk-flush.c b/block/blk-flush.c index dba392cf22bec6..5c392a277b9eb2 100644 --- a/block/blk-flush.c +++ b/block/blk-flush.c @@ -443,7 +443,7 @@ bool blk_insert_flush(struct request *rq) * the post flush, and then just pass the command on. */ blk_rq_init_flush(rq); - rq->flush.seq |= REQ_FSEQ_POSTFLUSH; + rq->flush.seq |= REQ_FSEQ_PREFLUSH; spin_lock_irq(&fq->mq_flush_lock); list_move_tail(&rq->flush.list, &fq->flush_data_in_flight); spin_unlock_irq(&fq->mq_flush_lock);