From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 45ADD33436F for ; Fri, 14 Nov 2025 15:42:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763134922; cv=none; b=fqDfWl/Jz+WNOkot6VEY+pjSlFncN+6UOvs23xPULNNcAL7xxq0bnHxwm/uU8xG3+IQBX9IMNN7guRnu9kZiqcj7bJxKB6F9HTEGS3Pe5U46G2fSS7I2qqiRQPChenDHxd5qhz9e59iWpJUuDf+bpjnlm6NOKyqVg/YSIziKBiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763134922; c=relaxed/simple; bh=awJcRbOIqi/NwQQHQ2KUQztGb8zQCe0HWVKs51hyDdM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iZbuKOG7PoStelc36uVuR0rfRG+BtfqnsR7PqypP+NeRw4/c28PqUFNDmq1S4X4DHDGFN6AqxB0n4Kpj1trY/p5K4D5Fsg0xvyJNAPG96pZUunFPFfsFrsnFRkn/kzXOUUO2sPvo3iwAbg10g3QvSJfV8EqFBsisQLh84R5AU6U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2/xYp0G8; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1UNmPUpC; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2/xYp0G8"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1UNmPUpC" Date: Fri, 14 Nov 2025 16:41:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1763134919; 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=IskL8g7V3/rjeI+B2keztCszWthJqS4V60vo4lqe23U=; b=2/xYp0G8gfGd+laJWCiEwdSYzyy0cpWMKWQX2hJXX4Pk54k/BykHZ5JG/cVvPS+Wsn7H+0 WLNJRgQ4p4pMqRnc8SjyH7V0/ML9mF88HJHx/fnedHteLct0irWewocBVB0gMPPWYSf6su jZCURrq+6cJN5E8y+i2ziMm9H48ha5K3oGsBDLI18UZvGlTDP9OxAXGBa+z4A9/tAM92Xy sLubAubwjj12OJ4pnWg64qe60bFbNMNVHdLx209N/6/e5Alro2l6hQQ3eS4WXqBTMoehPq /pkeznxB7tEmjYS3zOdhCjWzcgdxnxZemvMhT8HgtPgBUlPLqW3QCifza5K/IQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1763134919; 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=IskL8g7V3/rjeI+B2keztCszWthJqS4V60vo4lqe23U=; b=1UNmPUpCAzoKgao/nDnE4YrxQ7LVAUFPTfXHVYTgDW8b/8hLYGpfdK/yO0HjM/HQ4zLNNa kJxcpTfhpp3ajwBg== From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev Cc: Thomas Gleixner , Oleg Nesterov Subject: Re: [PATCH] debugobjects: Allow to refill the pool before SYSTEM_SCHEDULING Message-ID: <20251114154158.es3XCFy-@linutronix.de> References: <20251106120628.AxWa_Viy@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20251106120628.AxWa_Viy@linutronix.de> On 2025-11-06 13:06:28 [+0100], To linux-kernel@vger.kernel.org wrote: > The pool of free objects is refilled on several occasions such as object > initialisation. On PREEMPT_RT refilling is limited to preemptible > sections due to sleeping locks used by the memory allocator. The system > boots with disabled interrupts so the pool can not be refilled. > > If too many objects are initialized and the pool gets empty then > debugobjects disables itself. > > Refiling can also happen early in the boot with disabled interrupts as > long as the scheduler is not operational. If the scheduler can not > preempt a task then a sleeping lock can not be contended. > > Allow to additionally refill the pool if the scheduler is not > operational. > > Signed-off-by: Sebastian Andrzej Siewior A gentle ping. Sebastian