From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 925F423F412 for ; Thu, 23 Oct 2025 15:55:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761234920; cv=none; b=EC3lGSisfwXGs1KMDNzNJl7v+6e9PBiWyF+CBT0br9slajDnOnPvJ0kdC5nCnrCbHhZlV5FxGFLKD4T/jjCHlnWJwKteq+yMvdR5WLwC13jFZ4o3taKYj+kM5X3HY5LMIZzWTxGnvauACdo4tThFGzmSGI3crP855VUZqe0OgyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761234920; c=relaxed/simple; bh=9vRQsWTU1bGawr6sv7Czwt/5D0tPFpG9DS3UtxnsHts=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QA7+IinwWKcqKOcJdbPAee7Ea5tJLSkJDHFe6WCNCKwHDpsb1MePnSqZWAFdBEG7O9mnxluJ+j6MdArWAocGUK3Kw9eEIPkp3QhYQOo1o9pMHcw/iOTarWMtdcbn86JsaVxyGNn3/2k63/js2ViTQsAVMCk+spA7dP0Z/9gWbn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=EhXPYUft; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EhXPYUft" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1761234917; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=U7iSUgXoM0qVt7GRMqOCJs+1jLI6D2kNdaUPNd5OMOA=; b=EhXPYUftlG8BONSAhyyYVY1oCxxG5ZWkblccz61K6sKX40ryVXjlSz7y2v36eX3fwBwNrd jlh+3OBDJfJCvt/rSeKKn/g9laZ41swIsZUD4z/ULi2Zjt47crnj2/d1x31FWCxc9MKdRE eSX45IMNkSRTLc2asSUt6L5nDCt7D+w= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-315-K2K8AlH-Mc6kF6nGQ8tj0g-1; Thu, 23 Oct 2025 11:55:11 -0400 X-MC-Unique: K2K8AlH-Mc6kF6nGQ8tj0g-1 X-Mimecast-MFC-AGG-ID: K2K8AlH-Mc6kF6nGQ8tj0g_1761234909 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3036E18001E4; Thu, 23 Oct 2025 15:55:08 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.19]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 06C39180057C; Thu, 23 Oct 2025 15:54:59 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 23 Oct 2025 17:53:49 +0200 (CEST) Date: Thu, 23 Oct 2025 17:53:40 +0200 From: Oleg Nesterov To: Sebastian Andrzej Siewior Cc: "Luis Claudio R. Goncalves" , Peter Zijlstra , Clark Williams , Steven Rostedt , Tejun Heo , David Vernet , Barret Rhoden , Josh Don , Crystal Wood , linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev, Juri Lelli , Ben Segall , Dietmar Eggemann , Ingo Molnar , Mel Gorman , Valentin Schneider , Vincent Guittot , Thomas Gleixner , Wander Lairson Costa Subject: Re: usage of DEFINE_WAIT_OVERRIDE_MAP(LD_WAIT_SLEEP) Message-ID: <20251023155339.GE26461@redhat.com> References: <20250729114702.GA18541@redhat.com> <20250729130936.GB18541@redhat.com> <20250801102428.GB27835@redhat.com> <20250811105948.OafBprND@linutronix.de> <20251020145310.GA9608@redhat.com> <20251023135316.1ZRx0UU5@linutronix.de> <20251023152942.GC26461@redhat.com> <20251023153750.C6EU9NL6@linutronix.de> Precedence: bulk X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251023153750.C6EU9NL6@linutronix.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Sebastian, sorry. I guess this is my fault, but I can't understand your reply... Could you spell please? Just in case, I will read your reply tomorrow. Oleg. On 10/23, Sebastian Andrzej Siewior wrote: > > On 2025-10-23 17:29:43 [+0200], Oleg Nesterov wrote: > > Hmm. I'll recheck, quite possibly I missed something. > > > > But. From include/linux/spinlock_types.h > > > > /* PREEMPT_RT kernels map spinlock to rt_mutex */ > > #include > > > > typedef struct spinlock { > > struct rt_mutex_base lock; > > #ifdef CONFIG_DEBUG_LOCK_ALLOC > > struct lockdep_map dep_map; > > #endif > > } spinlock_t; > > > > > rt_mutex is defined as LD_WAIT_SLEEP but this one is not the one we use > > > for spinlock_t. > > I may need to update the comment then if this is the source of your of > confusion. The rtmutex.h header is required for the rtmutex bits which > does contain struct rt_mutex_base which is used below you see. > struct rt_mutex iself is not used here and has a different semantic > (this one does use SLEEP). > > > Oleg. > > Sebastian >