Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp239276imn; Mon, 25 Jul 2022 15:06:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vAyBGvzj0zqRDbvYFmQKGpe2kN4m9WF1ijI66xNlClI9To3axLV68yyK03i2U0p8VYFNtt X-Received: by 2002:a05:6402:5191:b0:43b:d047:dcb5 with SMTP id q17-20020a056402519100b0043bd047dcb5mr15344381edd.390.1658786801683; Mon, 25 Jul 2022 15:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658786801; cv=none; d=google.com; s=arc-20160816; b=hTGN9esOZSxyCLYNW7MQhdPJWust0R7naGW+GfwLdkA8etrl1CVXyGnyB2sf0yKl76 kKbFCNnSY1zCdlTT0rsvyDxCVm7hiUFs8zQfwhJj3PBlVSW+/YtDv4Kuo2jiGbE1htea vPHA9qQaoWS/0HuEPeeM+ibpjuQ3WLiMVIU2OEdAkjL5pmADd/3E2MBh+XL77Zd7JXhl Ee3Fal2ZEtGvLXSZqwrQtny+r4QYIou1Jrwdkg0LsTWFwWv0lCro/BcSmtPxw03WDiQb 7FpPtmRXgYiR7Vd3ZMJ5q5aYKoE6solofI30OdQT7lfMXVRW13/LT0m7JovsbjunoZZW lMOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WTJLOcnSVF1bwS7TCQoRjmxcG2LqyyIDw71V/Rvy/NQ=; b=TDk0aiOW0/jwc2GQKrv0JApxFBA8t91EG+zpRGGGp2Oankz40ayhHQbv/aek5Q412n 6HVBP5Bbs2BTGZWSnO9/e69qZc3oGHBnG24r2SOXtYpUSLn/sgG7CmVG1JEvWZB+BF3a /fCgWkv3D5F8EAqn+dUjwGS5W9qTNb1gZ8rcGwfGe51PoCjvJL7EIfCokBtdG0G9yq8J jILs6jLlJii1B8ucpwZYYecLLic2zvnDvE4ox+je6OshtPY/2F/2OSng3TbfQbgsh0kS Vy8nrdTnz0qMZkcxwmrdMheVvCGz2kaFUKUPx56Ppmor0YjMv++smH8rqBGJcLIgjDgR dUYA== 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 hq28-20020a1709073f1c00b00729c19c5106si16005982ejc.999.2022.07.25.15.06.06; Mon, 25 Jul 2022 15:06:41 -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 S230041AbiGYWD1 (ORCPT + 99 others); Mon, 25 Jul 2022 18:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbiGYWD0 (ORCPT ); Mon, 25 Jul 2022 18:03:26 -0400 Received: from mail104.syd.optusnet.com.au (mail104.syd.optusnet.com.au [211.29.132.246]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C92113F72; Mon, 25 Jul 2022 15:03:25 -0700 (PDT) Received: from dread.disaster.area (pa49-195-20-138.pa.nsw.optusnet.com.au [49.195.20.138]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id 42EE962CBD0; Tue, 26 Jul 2022 08:03:22 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1oG6Aa-005Ho9-IG; Tue, 26 Jul 2022 08:03:20 +1000 Date: Tue, 26 Jul 2022 08:03:20 +1000 From: Dave Chinner To: Bruce Fields Cc: Chuck Lever III , linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: all cel/for-rc (1197eb59 lockd: fix nlm_close_files) results Message-ID: <20220725220320.GX3861211@dread.disaster.area> References: <20220724125542.89A6FA0482@home.fieldses.org> <20220724125848.GA14741@fieldses.org> <20220724163401.GA17655@fieldses.org> <20220724163702.GB17655@fieldses.org> <0CFBAAC2-1ECF-48E1-A687-75176C2F1A17@oracle.com> <20220725021029.GA789@fieldses.org> <20220725121600.GA17056@fieldses.org> <608CA2C9-464C-464E-B4AD-CF1B8C494A5A@oracle.com> <20220725132252.GB17056@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220725132252.GB17056@fieldses.org> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.4 cv=e9dl9Yl/ c=1 sm=1 tr=0 ts=62df132b a=cxZHBGNDieHvTKNp/pucQQ==:117 a=cxZHBGNDieHvTKNp/pucQQ==:17 a=kj9zAlcOel0A:10 a=RgO8CyIxsXoA:10 a=mJjC6ScEAAAA:8 a=7-415B0cAAAA:8 a=91fKm00LvdUcDh_QjY0A:9 a=CjuIK1q_8ugA:10 a=ijnPKfduoCotzip5AuI1:22 a=biEYGPWJfzWAr4FL6Ov7:22 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE 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 Mon, Jul 25, 2022 at 09:22:52AM -0400, Bruce Fields wrote: > Adding linux-xfs in case anyone has an idea.... I'm seeing this on an > NFS server. I believe the client was in generic/187 or generic/460. > > On Mon, Jul 25, 2022 at 01:14:27PM +0000, Chuck Lever III wrote: > > > > > > > On Jul 25, 2022, at 8:16 AM, Bruce Fields wrote: > > > > > > And again: > > > > > > [ 3987.996455] INFO: task kworker/u8:2:40 blocked for more than 120 > > > seconds. > > > [ 3987.998415] Not tainted 5.19.0-rc6-00014-g51fd2eb52c0c #3560 > > > [ 3988.000005] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" > > > disables this message. > > > [ 3988.002131] task:kworker/u8:2 state:D stack:24784 pid: 40 ppid: > > > 2 flags:0x00004000 > > > [ 3988.004628] Workqueue: xfs-cil/vdf xlog_cil_push_work > > > [ 3988.005841] Call Trace: > > > [ 3988.005968] > > > [ 3988.006052] __schedule+0xb73/0x2260 > > > [ 3988.006251] ? io_schedule_timeout+0x150/0x150 > > > [ 3988.006511] schedule+0xe0/0x200 > > > [ 3988.006676] xlog_wait_on_iclog+0x435/0x600 > > > [ 3988.006914] ? xfs_log_mount+0x550/0x550 > > > [ 3988.007119] ? mark_held_locks+0x9e/0xe0 > > > [ 3988.007311] ? wake_up_q+0xf0/0xf0 > > > [ 3988.007470] ? rwlock_bug.part.0+0x90/0x90 > > > [ 3988.007704] ? kmem_cache_free.part.0+0x99/0x1a0 > > > [ 3988.007977] xlog_cil_push_work+0xcf4/0x14f0 > > > [ 3988.008206] ? xlog_cil_write_commit_record+0x310/0x310 > > > [ 3988.008565] ? lock_downgrade+0x6a0/0x6a0 > > > [ 3988.008796] ? lock_is_held_type+0xd8/0x130 > > > [ 3988.009030] process_one_work+0x7ee/0x12d0 > > > [ 3988.009238] ? lock_downgrade+0x6a0/0x6a0 > > > [ 3988.009432] ? pwq_dec_nr_in_flight+0x230/0x230 > > > [ 3988.009667] ? rwlock_bug.part.0+0x90/0x90 > > > [ 3988.009896] worker_thread+0xfc/0x1270 > > > [ 3988.010259] ? process_one_work+0x12d0/0x12d0 > > > [ 3988.010591] kthread+0x298/0x340 > > > [ 3988.010754] ? kthread_complete_and_exit+0x20/0x20 > > > [ 3988.011018] ret_from_fork+0x22/0x30 > > > [ 3988.011201] > > > [ 3988.011298] INFO: task nfsd:23110 blocked for more than 120 seconds. > > > [ 3988.011746] Not tainted 5.19.0-rc6-00014-g51fd2eb52c0c #3560 > > > [ 3988.012232] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" > > > disables this message. > > > [ 3988.012828] task:nfsd state:D stack:24400 pid:23110 ppid: > > > 2 flags:0x00004000 > > > [ 3988.013426] Call Trace: > > > [ 3988.013521] > > > [ 3988.013636] __schedule+0xb73/0x2260 > > > [ 3988.013850] ? io_schedule_timeout+0x150/0x150 > > > [ 3988.014160] ? reacquire_held_locks+0x4e0/0x4e0 > > > [ 3988.014409] ? do_raw_spin_lock+0x11e/0x240 > > > [ 3988.014732] schedule+0xe0/0x200 > > > [ 3988.014905] io_schedule+0xbf/0x130 > > > [ 3988.015152] folio_wait_bit_common+0x305/0x610 > > > [ 3988.015387] ? replace_page_cache_page+0xd30/0xd30 > > > [ 3988.015754] ? folio_unlock+0x70/0x70 > > > [ 3988.016016] ? lock_is_held_type+0xd8/0x130 > > > [ 3988.016385] folio_wait_writeback+0x40/0x230 > > > [ 3988.016604] __filemap_fdatawait_range+0x10a/0x290 > > > [ 3988.017149] ? file_check_and_advance_wb_err+0x270/0x270 > > > [ 3988.017448] ? lock_release+0x380/0x750 > > > [ 3988.017708] file_write_and_wait_range+0xb4/0xf0 > > > [ 3988.018028] xfs_file_fsync+0x146/0x830 > > > [ 3988.018279] ? xfs_file_read_iter+0x450/0x450 > > > [ 3988.018569] ? lock_is_held_type+0xd8/0x130 > > > [ 3988.018841] nfsd_commit+0x304/0x550 [nfsd] > > > [ 3988.019161] ? nfsd_write+0x4f0/0x4f0 [nfsd] > > > [ 3988.019394] ? percpu_counter_add_batch+0x77/0x130 > > > [ 3988.019736] nfsd4_proc_compound+0xcbd/0x2070 [nfsd] > > > [ 3988.020121] nfsd_dispatch+0x4b9/0xb90 [nfsd] > > > [ 3988.020409] svc_process_common+0xb23/0x1ac0 [sunrpc] > > > [ 3988.020781] ? svc_create_pooled+0x4d0/0x4d0 [sunrpc] > > > [ 3988.021165] ? nfsd_svc+0xc60/0xc60 [nfsd] > > > [ 3988.021381] ? svc_sock_secure_port+0x2a/0x40 [sunrpc] > > > [ 3988.021746] ? svc_recv+0x119f/0x2890 [sunrpc] > > > [ 3988.022015] svc_process+0x32d/0x4a0 [sunrpc] > > > [ 3988.022336] nfsd+0x2d6/0x570 [nfsd] > > > [ 3988.022564] ? nfsd_shutdown_threads+0x290/0x290 [nfsd] > > > [ 3988.022874] kthread+0x298/0x340 > > > [ 3988.023018] ? kthread_complete_and_exit+0x20/0x20 > > > [ 3988.023332] ret_from_fork+0x22/0x30 > > > [ 3988.023513] > > > ... > > > > All three call traces you've sent me show an NFSv4 COMMIT > > waiting in folio_wait_bit_common(). Should you report this > > to the XFS folks? Or maybe a little bisecting might help. > > Reproducing is a little slow and not 100% reliable. I'm not sure I'll > get to it. Both tasks are waiting on IO completion, and they are waiting on independent IOs which means it's likely not a filesystem layer problem being tripped over. i.e. it's likely an issue lower in the storage stack (or hardware) that is causing this. Cheers, Dave. -- Dave Chinner david@fromorbit.com