From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B2ABC021B3 for ; Thu, 20 Feb 2025 16:29:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 03ADF4401E6; Thu, 20 Feb 2025 11:29:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F14AD4401E4; Thu, 20 Feb 2025 11:29:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E037E4401E6; Thu, 20 Feb 2025 11:29:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C17474401E4 for ; Thu, 20 Feb 2025 11:29:57 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 5F0981424D3 for ; Thu, 20 Feb 2025 16:29:57 +0000 (UTC) X-FDA: 83140859634.03.0DD6765 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf13.hostedemail.com (Postfix) with ESMTP id B16C62000A for ; Thu, 20 Feb 2025 16:29:55 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf13.hostedemail.com: domain of "SRS0=7baa=VL=goodmis.org=rostedt@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=7baa=VL=goodmis.org=rostedt@kernel.org" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740068995; a=rsa-sha256; cv=none; b=HQVd9S8f2eOk6xS10rzGGwUi0evTQHzdMur47d+RaFyVyOpe4TWf6D8/vh7MxFbchzV7tl 8k7mjEdOooq2ojPc/vQL/N2/714QHQ2cRaXbZQiR9fOLffQ+MsvUG97Sy4qjtqnlQaKPVs Jtso50Z2TLENE34KBMdkwFex16LtpOM= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf13.hostedemail.com: domain of "SRS0=7baa=VL=goodmis.org=rostedt@kernel.org" designates 139.178.84.217 as permitted sender) smtp.mailfrom="SRS0=7baa=VL=goodmis.org=rostedt@kernel.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740068995; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qzrAP7JxHYH6um3c13yUuBy+RWjJd260Jd/taJRVypY=; b=Nqqo9h5x2JND//UU7vfn5tQguNbG4nCaprAqgf3mjGU79eac6Pwh3N+R3dabzH7g3qiJKZ AgWx7qVSyUIbgC0f8FXsC7KjLRE7PWZgxSiIY+Mu8D2kfBlXOnPh/wlYgcQaBBM1jOQ1yp 1lmebHmFSXMeAUBmDpLkfAPP1d1xInA= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 858395C5C49; Thu, 20 Feb 2025 16:29:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A35A9C4CED1; Thu, 20 Feb 2025 16:29:52 +0000 (UTC) Date: Thu, 20 Feb 2025 11:30:18 -0500 From: Steven Rostedt To: Waiman Long Cc: "Masami Hiramatsu (Google)" , Peter Zijlstra , Ingo Molnar , Will Deacon , Andrew Morton , Boqun Feng , Joel Granados , Anna Schumaker , Lance Yang , Kent Overstreet , Yongliang Gao , Tomasz Figa , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Linux Memory Management List Subject: Re: [PATCH 1/2] hung_task: Show the blocker task if the task is hung on mutex Message-ID: <20250220113018.5d5b4fb9@gandalf.local.home> In-Reply-To: <3c09df17-79b2-40d4-a560-f6b1ddbbb73e@redhat.com> References: <173997003868.2137198.9462617208992136056.stgit@mhiramat.tok.corp.google.com> <173997004932.2137198.7959507113210521328.stgit@mhiramat.tok.corp.google.com> <20250219112308.5d905680@gandalf.local.home> <0fa9dd8e-2d83-487e-bfb1-1f5d20cd9fe6@redhat.com> <20250219152435.35077ac3@gandalf.local.home> <20250220075639.298616eb494248d390417977@kernel.org> <20250219204153.65ed1f5e@gandalf.local.home> <20250220114036.e22e388402a00f7809a81dee@kernel.org> <20250219221141.09f9fe48@gandalf.local.home> <3c09df17-79b2-40d4-a560-f6b1ddbbb73e@redhat.com> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Queue-Id: B16C62000A X-Rspamd-Server: rspam12 X-Stat-Signature: 6d3pxe17oz7q18k3tynqjewujphxyc1k X-HE-Tag: 1740068995-605703 X-HE-Meta: U2FsdGVkX19V7rmSLmpeEJWcaOmIn/Yfce8fTJTaEkvycAjcDpXKZ8BH5FhFmlFZaEEChDa8s03kCE1+EUFe9Ow2VVvfxT+pYr+XFiAEQeRrH2zk+eR+Bztszylq8RgIkHu/k49xvQfAb/B0VFKgYNp/WmD9P2T4BskzbxbPNE3GY1mXjs2dXm+5PpXT48PHoLsT+hJPo/GQ3fcGbuqY6cC3jAlYZtWTQHyjSl503DsKJD8cg1oWQ/iPd+UkEwG8UdCQgsCszi9/Hk0e7MBZGrZ2n2v5aon/zPw3TINlED763ymGsB/6qq6+kqdbLa0SOrhVbGRfQIg8D7dsN84Wgo3T0e33oOXvVjX4O0KP/2Y063wtPESltvHNPoBjq4yuKhmOOMHYh6W++Ip0Zqu3SO0mdCm1HghMHYYehuD45LeTMR2U3AdQsbQZTVNsUnZBWXysWLXFmjR6suFYIqdbscrdIroz/NJnDNbchr7Qi1ZBZxnAd3/JVvlxBHEzGoNctnPpJYRMeJarDZPCa+iD2/+Qta4zeU6a3y6CVLJGNc3MpW9to7R8e8O184fRFPb6ozrI/QK59Aey+kdTANhnnU+j91hV4bzpv3OSySFc9/d3Ft0ps72l+38LbSAJ5h7mC9pmFT9KqDh4psikHmVar3cyFQQU5hjyfaSHAaLTxQkPrwvlaGMSwNYByYY2M1w2LlM7Yj+/ha3TZffNn6BNd0zwpY4BvTxIjj0rwz4FYUDjKAIahLqqv1h/KJ1h06U4g3hKhP7ZaTArihvEzQ+0W0FL/J525jTCNPdQoe91ysYl8WXvD0hcBGCVTXYS2xvpFteZZdtimS0C43BHwaQ/AHo+VFyjrNiCRvhbYBd1b1LYYWVJ54sf4+Rp9K8vfqIqPSyTA0py9XUIrCY32S9Q5SAjvoeQOCYi20JttgcilO+vAFcNQ1Y5xvVICpW/xzEnUxEpOJHtj671sVPHNQx vRq7KNtU mAtHA3sBTg3N76BykPR2RNpBbKNJAWtBitjxRBK0UdTqgNhwo8fDdbaT2U2dX7I18VQo0F1GIS/ZsiBOqDpBVGLflXSDkXQBFz9C6fVewVP3ekSezqzhtf1HP/7lfKzI+mv0aZZCiDHlLGS2t+MNNtHMD35qNDYN8xYJb+ZA+vCfc2v35n2ZRI+SMuayBg5YkOcm2CtGG1HxpNtJ+3z36i4nNvhbuZ1+8doYQB+WfjfJ4etNxajmCoE736nFewrX65fQXEBEX9wds2AJOylhVp1sXwWUt7Tz6KGINocyj7h5+gFcdsEbZw0CpUwXyino5u1B0OncXJxDfrCo3CWTw0Nun/az5mFf/BPb14UG1It9TDD6jU14FbT8dJj3XrzPh+No1sr+sIfpLG2M= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Thu, 20 Feb 2025 08:13:31 -0500 Waiman Long wrote: > Another alternative is to encode the locking type into the lowest 2 bits > of the address and combined them into a single atomic_long_t data item. > Of course, we can only support 4 different types with this scheme. You could also use the MSB as they are either always all ones or all zeros depending on the architecture ;-) -- Steve