From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 8F0403DCDAE for ; Wed, 17 Jun 2026 10:12:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781691135; cv=none; b=pqO14luXFW2+FJFsXljnOam/VKYuuyeEl8ZsrorB6wrW22IvzmZ6lEtydTDzgCykoSJvJECxPw3k7SA41Tr53NyCtA9eNrV+BPCQFmuv1SKGHotvPvoaBuwDdk21+esrGVMtV8tAhYCjaeU+WWyqk588S/wtCa6l47s5JjaDNNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781691135; c=relaxed/simple; bh=zqiyKisxnhy0xgzQCFdf1v6HFhpfFmktZ4vRlTJ1+Uo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f+jMwu5kQfAcmd0XYhTNIsnrI7h/0qdMs1ZBQjfTg9fmEydl6HJaGmnGw2Ok/BmrAaBOFL0f9Y8Cxn53qM03xcf594ukAqAWf9SmI2Nchlp5RJWcYajNBT4uKK3Q83+6eyN6LPW2c5ZZmslcnfL+/ACQR8i33ZSSYopnuRspqUg= 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=aVNC3uOY; arc=none smtp.client-ip=209.85.128.53 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="aVNC3uOY" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-490b7866869so56776015e9.2 for ; Wed, 17 Jun 2026 03:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1781691130; x=1782295930; 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=9e/QpG56/O5B7hSvy+0kATSJ4lRQbuxYrUIyg9GDMZQ=; b=aVNC3uOYxjkigJdmFFgZzwQIAsMOd7t2U9Y9CxIRKBiJHROx6zN1bkNFmyKZq7D6bE rhA3HFT6VVTz/Of1zcXQ/O9To9BVF7w5nu/rETdfvabpgspwdHah6IoUcLXSZReKMNik 0nRNo02h9ofSWFLhFY+fJGkQEOgPhlld1fpfcYRnZAZ2R+xXdc1YQtgMczTO+kUtctqJ Ig6gpYl+468auogQ+z5vmsQoXeTQj41CPzvLrKeM632JVK7AUk0OFU8TRm8lpm/eAwxQ pcuobJZWHmNLtS2TkJKJzy3vRAXv4tDIcmooP0up4aWeHLAUlaHJn2nagqPE6pKMEtS8 iuwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781691130; x=1782295930; 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=9e/QpG56/O5B7hSvy+0kATSJ4lRQbuxYrUIyg9GDMZQ=; b=JbUANvs4LDRgq02LwT/xs0BNM00JXpxXRG48cFHntjK0Zf+P6BYfdXKYu8usD+wgSn Cp0541jUlKRnvjPyghiLSUo7e0/P+z8FtchaxK9PKRq+LmRlHxEAyBwk8bjFsAVnuEIW Nas9vWwUzM3ONdD5c6lZpjk28LAJSP2ZR/BDZgLvHeT21w2zUPJjZEu2PwtrZ3BkFmk7 /U4ogiIvYHnXjY0Tahi+980lHao6oFyAlzW8MW9eqrG9mYxli/zMkhZ1mTagZetyDKaX fAL3jc5nOxrN0ZMZxKie73I7wxDWKvfalDxeBLcIOCzN2SELs18jY8Ai5ajCDVpyh3bq 7GYA== X-Forwarded-Encrypted: i=1; AFNElJ9mBnaZlCl6htXdAW6dwlOBaGQ/zoc1H8uUZ75tcT6eiJA7iKhCkrkCQNAp9OUa0glKkfq/4FeQxFHlZe0=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6Q/KKgvnoLIjS8QSLWz97n9w2CD2ZxjMmOP8xGXEt9PBl3+rD td9KwakIVojUIllsjiS7xdKc6SI2FH/0S4A8LioriyhqFeXsmGmmJ9ctVMKiqn7jB/k= X-Gm-Gg: Acq92OH4h9CTyReZn/ZWBRur4OG9F49vDANzlqrfdG/Ifxa5lL5yalB6BoVN4Ko6FNS BIrIKW9pWtuS1ze/JHg7jZbsnhUElR4Zyb99CzQs8k1Dfiw1SiU7dk9F3AqZWve8RfKcz58oTYV jq4pmO1/iKviH9n45mINN7klEm3X+CikmwI0XkDwPDeOGAv8uKVA9kAy4g3J650sS2X5n03BQio 9++uqs+s8FWge0Mp1ZmuMXJ1NbUxQZHEA64NnKVbzyvFNQ9CHHnun57PzNaNATbRqp1qbLHN+Z0 hN2cY3ZH2F0ykLJs3NFmulFGipbojHawldj0FuxI2X9iCX1RAlwnVLxs6UwW20sNmFgjlVAIm4e hJCa5L+MpPsKDrYlDC5C3Ueo5kJuJn00xhfxvZHA898e3t4H/kcnLaiEE7vmYyyDMkKj5xAg35n sz0XgSGGz+c/LAnuU= X-Received: by 2002:a05:600c:470d:b0:492:25a1:e2f9 with SMTP id 5b1f17b1804b1-49234131e65mr39184075e9.26.1781691129811; Wed, 17 Jun 2026 03:12:09 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923686fffcsm1799745e9.0.2026.06.17.03.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2026 03:12:09 -0700 (PDT) Date: Wed, 17 Jun 2026 12:12:07 +0200 From: Petr Mladek To: Sebastian Andrzej Siewior Cc: Jakub Kicinski , John Ogness , Sergey Senozhatsky , Peter Zijlstra , 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> 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: <20260616153122.keHMKvVT@linutronix.de> 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. Best Regards, Petr