From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05A583EF0A8 for ; Wed, 17 Jun 2026 11:59:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781697574; cv=none; b=twiJ/m0RVP/ACnd5jKHG8JgBbDYGo8001JmZBxSurNxGZMbyVCt2YA4QXJ7CUUmtfsx4VklZEyrXQ/CuSjtSHYATff4oqg0glruFuRc63SSa3MKleWEnnQslTb//lHd7lea827i4482BDd2QArU09iL+WTZL+649/NaQAQ0Xhlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781697574; c=relaxed/simple; bh=cvsxccTzFVOpMQezm4HlOWz2aB8KWwD6zxOBa9D3eA8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Rpb6u3lUSy2w5Ncewof5g/AdDGSdEQBUzZJrv8WhaR/91/XWdRugmyJWpyRzVIwn5X1I5emI7RjWVv5Yet3dK7E2RJd1mFNCg5HpxCf7f8k2lHuY0ilkLgGdo7eFFxfYbF0ZdjLszliJ6I6WiBox4PUh2+W4ibE3C7W76GMBuVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=M6qD7bvt; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="M6qD7bvt" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-490b8ac62baso8542415e9.0 for ; Wed, 17 Jun 2026 04:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1781697570; x=1782302370; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wFy1siI5GPA02P4SigwJOvEY2/GCKPj1mDQV6Az/rvE=; b=M6qD7bvtZL4WoGDeCzK3htwiEAuyM4CktDeM5fxxmuqw8gryeGiBqYiMqXeDX0TObt ZhwgjWODAUq1Wf3Ii+fDS6wIbRIKznp+VbtnNcMlXDPeRTSb35z7nADRBqaaQQJpu7c5 E+wQDUsA8ekgkOZFpVB+TO4QInOdJdP0boeMLaa7Jm+N+CRknJN8WskaFdqdSBs19MsJ eGKWMVRPZzLWCQU6WqgGC1mSSdRD/AcSd5UzNGZKVBVNC6xyNW6sQLx4BqpiZ+xh4bnR kH561LSvnpzCGzIWt+h44lsPyKA5JUitnlXOYfdn+0QaRB9CPyOj+PXMEt90lJWu8pBR H3GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781697570; x=1782302370; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wFy1siI5GPA02P4SigwJOvEY2/GCKPj1mDQV6Az/rvE=; b=Viy4tCHhO2ZIidhKDpBB2y8Puz2k2Y+MQufTM8Yiq4p4jx8P/TfEm/Zbmi5HHspkiN TBr40BMGaWvU+N02/5zpVEV0O82jXlWmHqkj3Q20n5UrjyCjeSTgku+kxq3LX61jIRnQ U/vUnRbG3Hyve8hageE6EgoOL5CAv9b5wznuTLLM7s+AgV3ididDimhbLxBl1DR9OxLP X9WohxGD03i9kLy3KIWL4xPG8ur9GAA0vOCrguYOf9cjTVY62gbaqXQ0AGs+3V0IyuVa XK87PalUo1xBP+HNvk3keHqVAz+uPDRDBhtTW6nCJx6UOOiVQBZx+Na1qiVVA6CHS2rQ oUQA== X-Forwarded-Encrypted: i=1; AFNElJ+f5vio3aJm9r+82iO1q1rTHgQSUpjduRLjwN5UWhluCJFHxqWC9Hrl9DMY3kdmXOBkndWt3lCydTOvwb4=@vger.kernel.org X-Gm-Message-State: AOJu0Yxi5H/ZECG8X85kl+sy7DIwfoX11+QOQkHatg0lHaNpXhvPKiPJ DSSkvSrbr2WcS7Jsa5SoTKF4u6clzlK7UzYIqQ0OA3qZ/BcBPiJDcM3BCeboebz7s5E= X-Gm-Gg: Acq92OHjc2zZ/jbD2U1gc3Fyn9JwyPx5GAVQqFfQG5dmF+L6LikvUc1mzMbq9o4VtGE b7vqJM9K7dnM7IlN0TM1naZTJ8rNA9Um8DrBLW5cY+xfFmZOWR9xuIf6EE27Wo+6DDPwzkrtgI/ Z/2J3/h3t1SvJeH7eeS+com+pzoV7qCD9M150esjO02mJrrRNdESEG4t59WWhgAIzJE5OYfvPAD irZUVjVs/Fc5PkD6rEv5daf+5hRW3/XXYbwCCYHHPZm1TZBz3GPqdFt2bwHSMA6bioElmHwDyV0 vIIdFMy0LYr17d/iFH03fOJLyG9zLucOSmy3hx9i4HbAPCdGEQ3M6jDtuCNGbrAMx4ixsMTBXSC oi3NhJ+SzuCeWdgwgHdET3TSxhGvqC3+rwSL2lpndkMl+4OOjcX84EGPiE3Wy8Sv7kKj3NrC6pj 8+nlr50B7MyFUA2O0= X-Received: by 2002:a05:600d:8450:10b0:490:4035:323 with SMTP id 5b1f17b1804b1-492340e75cdmr33496715e9.9.1781697570289; Wed, 17 Jun 2026 04:59:30 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f26f309sm48879291f8f.14.2026.06.17.04.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2026 04:59:29 -0700 (PDT) Date: Wed, 17 Jun 2026 13:59:27 +0200 From: Petr Mladek To: Peter Zijlstra Cc: Sebastian Andrzej Siewior , Jakub Kicinski , John Ogness , Sergey Senozhatsky , Vlad Poenaru , Thomas Gleixner , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Breno Leitao , Clark Williams , Steven Rostedt , linux-rt-devel@lists.linux.dev, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Frederic Weisbecker , Ingo Molnar , Vincent Guittot , Dietmar Eggemann , K Prateek Nayak Subject: Re: [PATCH net] netpoll: run NAPI poll in softirq context to avoid rq->lock self-deadlock Message-ID: References: <20260610183621.3915271-1-vlad.wing@gmail.com> <20260611191114.5bc43a59@kernel.org> <20260616103529.Yh9Dxsjp@linutronix.de> <20260616081128.04e2c8dd@kernel.org> <20260616153122.keHMKvVT@linutronix.de> <20260617111504.GK49951@noisy.programming.kicks-ass.net> 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=us-ascii Content-Disposition: inline In-Reply-To: <20260617111504.GK49951@noisy.programming.kicks-ass.net> On Wed 2026-06-17 13:15:04, Peter Zijlstra wrote: > On Wed, Jun 17, 2026 at 12:12:07PM +0200, Petr Mladek wrote: > > On Tue 2026-06-16 17:31:22, Sebastian Andrzej Siewior wrote: > > > On 2026-06-16 08:11:28 [-0700], Jakub Kicinski wrote: > > > > > > > > > > Adding sched and printk folks for opinions while eyeballing > > > > > WARN_ON_DEFERRED(). > > > > > > > > Thanks a lot for looking into this! To be clear - the printk_deferred / > > > > WARN_DEFERRED would be just for stable? Or there's still some > > > > sensitivity even with nbcon? > > > > > > We already have printk_deferred(). WARN_DEFERRED() would be new. I > > > *think* this is not limited netpoll/ netconsole but all console drivers > > > not using CON_NBCON if the printk (via WARN) occurs with the rq held. > > > I don't remember all the details but printk_deferred() was introduced to > > > circumvent this until printk is fixed. > > > > Just to make it clear. The problem with the legacy consoles is that > > they are called under console_lock() which is a semaphore. And it > > calls wake_up_process() in console_unlock() when there is another > > waiter on the lock. > > > > > Once we get rid of those legacy drivers and NBCON is the default we can > > > get rid of printk_deferred() :) > > > > Yup. > > Can't we push all the legacy consoles into a single legacy kthread? I > mean, converting all consoles is of course awesome, but should we really > wait for that? I am afraid that converting the consoles one by one is the deal with Linus. I could imagine to moving last few sinners into the kthread when the majority is converted. But we are far from there :-/ Best Regards, Petr