Message ID | 20230223122642.491637862@infradead.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp288583wrd; Thu, 23 Feb 2023 04:40:23 -0800 (PST) X-Google-Smtp-Source: AK7set/0xE6Vdp3olFCmxvTWxxC/cpHZQf7PN8X3aEmhImPear34+RFtHarDsg/di+TLB1PWaNug X-Received: by 2002:a17:906:7499:b0:8dc:ebb5:a115 with SMTP id e25-20020a170906749900b008dcebb5a115mr9223134ejl.0.1677156023809; Thu, 23 Feb 2023 04:40:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677156023; cv=none; d=google.com; s=arc-20160816; b=WeB1tYRxW1g1ZFFBS6Ehi0PCbGIIW9xX/tcDOWo3iBjZEi/+JNEh+JXyl3yvfdBsep 4LUHk7i9m4TbdZ9buTKunCPKeu6TI6EtPi2Yh8zRvfkwd8sMz3GcGg5gFjH+35d4jEmQ KKEkTV1054q8I9cVJ2h5oQvBJ6JI6XNQnw9Y/uUYtgS5TnikTL0rtyXTWXGqnBqa/D5s cyMIl6dX2Va1TRf4XfVNlDkje5MqHdbw5XkwXgfv8emjvh2tHhVrgQVjacTKwRxTJFcD 0f2hKT7IaHyr5xOJ0aBlZgl5FrZxW5PLrXBt9ypJqekGAvJz3yLpyKWi7UHIgx0uVO7i 43fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:user-agent:message-id :dkim-signature; bh=AcrbEGeFeStRBuJzvLjFTyBE4ZFyRLTI8fFgvXrJzTA=; b=IkaE08pZWzeAMPgmCkdn8u3K8D2nSd9ANPcX5MrtxzPChLWbYApSBuxFzNwtx4Odjf Qr0fV8AM5zq838aI7I5t9iziscksb5Sxrcg1OQhv9dyLdM77odcjHsAcNP3WntirLLvG udzVU1K+k64cRqZX8W7falmGUUwB1eZfNxw00ZSIQLFWB9dZWnCMAaP+5skrkAHxCjGx kIX5InnidS7iDyqvAvZo+ZtAevG0wmMOdFxShjj/zCJD5PAwnzoP2jaTx7D1321SZ08I hpu8ogr3ugoP2tLzqa0vf84dXijRM38Y2m0vp1mAL+9RXZ+2xaYReCqrJxMHf6XOsJzH FrbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=pNe33g49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22-20020a170906025600b008b24caebd73si26787272ejl.225.2023.02.23.04.40.00; Thu, 23 Feb 2023 04:40:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=pNe33g49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233850AbjBWMer (ORCPT <rfc822;cambridge8321@gmail.com> + 99 others); Thu, 23 Feb 2023 07:34:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232770AbjBWMep (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 23 Feb 2023 07:34:45 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D49AE5328F for <linux-kernel@vger.kernel.org>; Thu, 23 Feb 2023 04:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=AcrbEGeFeStRBuJzvLjFTyBE4ZFyRLTI8fFgvXrJzTA=; b=pNe33g49dHtgLXgw6CmGJ8ppZu sP8siLGVX+JQ7/Rp0etV4R2EQRBcGli9lP9Ur72kRrt6tvuIi5/Hr8FLygE3OOnAnpqCLzADRxSgy C1iR/yLfSKOM01Ryj2jyYTkHTrp301FrdPAHZLMFyGl8AtcoerOdc4tCj2zfKNzxTBydcKbZP/LYN h/VREVkQw65K2NdTufvVBq1jVY+sEBP8TmF79ZPBGaiWwW4IaVZdB1Bi0gJf+hq92t8XJjoFhLLJM G6pwVdkViz7ZoYbUJJVKQVItg7gHym1u/wQATVY9UJPN67zWrPd84yW/TwoGeURriQwB3J/i5dYKt 3+GMDbag==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVAo0-00EMIj-Ov; Thu, 23 Feb 2023 12:34:37 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C99973001C3; Thu, 23 Feb 2023 13:34:35 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id AD2F02C539B20; Thu, 23 Feb 2023 13:34:35 +0100 (CET) Message-ID: <20230223122642.491637862@infradead.org> User-Agent: quilt/0.66 Date: Thu, 23 Feb 2023 13:26:42 +0100 From: Peter Zijlstra <peterz@infradead.org> To: longman@redhat.com, mingo@redhat.com, will@kernel.org Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, boqun.feng@gmail.com Subject: [PATCH 0/6] locking/rwsem: Rework writer wakeup and handoff X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758625554744757688?= X-GMAIL-MSGID: =?utf-8?q?1758625554744757688?= |
Series |
locking/rwsem: Rework writer wakeup and handoff
|
|
Message
Peter Zijlstra
Feb. 23, 2023, 12:26 p.m. UTC
Hi, these here few patches boot but are otherwise very much untested. Please test. --- kernel/locking/lock_events_list.h | 1 + kernel/locking/rwsem.c | 430 +++++++++++++++++++------------------- 2 files changed, 213 insertions(+), 218 deletions(-)
Comments
On 2/23/23 07:26, Peter Zijlstra wrote: > Hi, > > these here few patches boot but are otherwise very much untested. Please test. I like the unification that you have done with this series. However, I got the following task hanging message when doing a kernel build: [ 2215.893058] </TASK> [ 2215.895252] INFO: task pahole:65220 blocked for more than 123 seconds. [ 2215.901776] Tainted: G S OE 6.2.0-test+ #1 [ 2215.907520] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 2215.915347] task:pahole state:D stack:0 pid:65220 ppid:65065 flags:0x00000000 [ 2215.923690] Call Trace: [ 2215.926146] <TASK> [ 2215.928250] __schedule+0x367/0x950 [ 2215.931741] schedule+0x50/0xc0 [ 2215.934888] schedule_preempt_disabled+0x11/0x20 [ 2215.939507] rwsem_down_read_slowpath+0x28c/0x520 [ 2215.944215] down_read+0x98/0xc0 [ 2215.947446] do_user_addr_fault+0x410/0x700 [ 2215.951633] exc_page_fault+0x64/0x140 [ 2215.955385] asm_exc_page_fault+0x22/0x30 [ 2215.959394] RIP: 0033:0x7f37f8808dd2 [ 2215.962974] RSP: 002b:00007ffe7bc89e80 EFLAGS: 00010246 [ 2215.968199] RAX: 00007f377d7fb000 RBX: 00007f377dffb700 RCX: 00007f37f8439a1b [ 2215.975332] RDX: 0000000000000003 RSI: 0000000000800000 RDI: 00007f377d7fc000 [ 2215.982465] RBP: 00007ffe7bc89f50 R08: 00000000ffffffff R09: 0000000000000000 [ 2215.989594] R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000001000 [ 2215.996728] R13: 00007ffe7bc89ee0 R14: 0000000000000000 R15: 0000000000801000 [ 2216.003862] </TASK> I am a bit tired now. I will look at the series again tomorrow to see if there is something missing. Cheers, Longman
On Thu, Feb 23, 2023 at 08:19:46PM -0500, Waiman Long wrote: > On 2/23/23 07:26, Peter Zijlstra wrote: > > Hi, > > > > these here few patches boot but are otherwise very much untested. Please test. > > However, I got the following task hanging message when doing a kernel build: > [ 2215.895252] INFO: task pahole:65220 blocked for more than 123 seconds. I was running locktorture and ran into the same problem as Waiman. It's unrelated to the locktorture workload, though: [ 1482.886856] INFO: task btrfs-transacti:1073 blocked for more than 491 seconds. [ 1482.895755] Tainted: G E 6.2.0-pz1 #1 [ 1482.912382] task:btrfs-transacti state:D stack:0 pid:1073 ppid:2 flags:0x00004000 [ 1482.922544] Call Trace: [ 1482.926074] <TASK> [ 1482.929211] __schedule+0x3c0/0x1360 [ 1482.954121] schedule+0x5c/0xc0 [ 1482.958428] schedule_preempt_disabled+0x11/0x20 [ 1482.964396] rwsem_down_write_slowpath+0x17c/0x580 [ 1482.975260] down_write+0x57/0x60 [ 1482.979763] __btrfs_tree_lock+0x17/0x90 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1482.989779] btrfs_lock_root_node+0x3b/0x90 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.000082] btrfs_search_slot+0x2b7/0xc70 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.010267] btrfs_lookup_file_extent+0x4a/0x70 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.020949] btrfs_drop_extents+0x12e/0xf20 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.031252] insert_reserved_file_extent+0xec/0x2e0 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.053705] insert_prealloc_file_extent+0xb9/0x1b0 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.064774] __btrfs_prealloc_file_range+0x12c/0x420 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.075941] cache_save_setup+0x26d/0x3d0 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.086052] btrfs_setup_space_cache+0x9c/0xc0 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.096648] commit_cowonly_roots+0xd9/0x279 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.107046] btrfs_commit_transaction+0x8e2/0xe70 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.128221] transaction_kthread+0x14e/0x1b0 [btrfs a6f0f85f39d8ec2ab376bf2ae3a09f935847037e] [ 1483.149588] kthread+0xd7/0x100 [ 1483.158891] ret_from_fork+0x29/0x50 [ 1483.163689] </TASK>