Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp982695rdb; Fri, 2 Feb 2024 09:40:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH+M8dIo1xne/DRJI2+DpOWLAFhixJLXitwy72imMT81GKNFMHZWeCOEjjhHT8TCcWse5G X-Received: by 2002:a17:903:1107:b0:1d9:4919:ed10 with SMTP id n7-20020a170903110700b001d94919ed10mr7677314plh.22.1706895620276; Fri, 02 Feb 2024 09:40:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706895620; cv=pass; d=google.com; s=arc-20160816; b=p0oaYF+QAuR9Mqg01tq/FvMAPOaUfK+gnQf0xpYyYknTtIMel9R9IvBmNbaNqKRnJi hbuGEvMXky7oxhAMmNh8CHp7f0ypcm/wm9Ajfzkr5Z/UyLByzZ7ulB+wmKnAhMX7r1r/ u+nOYHzEtCj/HcqPQwlMZWdGmK0T4hSIciK+E45cK+3fI7OpR/DZVs6c1jToU4ryc+f+ XEpFOvHBWPtWWzZRyn9zC96Llc+rDKfBYntY64PHpFJsJy2S2NE8MgS+uvaOCBF6kOgM aCwwxs2qEWlzMyfNtnvIFxgJqZCOfyYUXakMatpn5+gitp0R768kwEgB+AyS9vVEIdX1 A30Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=7j5Ez3N6gWhmlknRZl0X0j6l0Uutkl2BpBmrqxpD9h4=; fh=vNwPjxcwHeMx72U18WTrDZ8RDzxyi+hZyr9vGh+ErEI=; b=RDVAuRm/qxv8DH3JM1WKlNAuiFYdmlgfCRSwBFhWwAj7RIO4DkOT2Yvx8Zf3s/+/ec z/qkWfVQGu2MWC6HGG05fxw81JqDBMxyxAULg1aN2+NpYeAsMvdYRHEdwCp6etDHmWa5 jbKkBKYnVkUjNIVALNWsbDJks6OC0T2ClnmTZA4HOTyUYXM8GX/uyGnNyWfPhaxD1Vw0 yYSovnbvO/uKeTCZwSGJDWcoeUWOpzsaA/uIha3lEKK/YzWEzk6PKxSbmlYUFGqwMq0I QZ1ZWD5ojw7nbjY28QK5q5PHiDP4or21nVFdfV2rwdqPst0ajVs348FSJdztHcM3YWij RWuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pQqL0XZC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVjkOzr18ZRHlC1MzuBcpRxBrEYTxPDhVNFvQauZV/L+5qkdDKIN57UdoMsHq7lyrg6aVPJtCOQhVMSkjbd+cABMjD254TzpADaVcjJdQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f17-20020a63de11000000b005d988899a5csi1897750pgg.504.2024.02.02.09.40.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:40:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pQqL0XZC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E738928CFB3 for ; Fri, 2 Feb 2024 17:40:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3816A14900B; Fri, 2 Feb 2024 17:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pQqL0XZC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5E59A14AD0D; Fri, 2 Feb 2024 17:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895606; cv=none; b=P0Dm+jXz29WCS+eLKicJfKauHTKrXcnt/Zz1HH/rk8OkQzzgOgyabFuVgcoTvrdMQwhhQR9kc1PRRjwbMq+KeqlOV9uGiQ0xOzo4a9IVmK9uf/cd/L1DFnAsxFYfsvFKIhglAZiHMtM3NCIjmp7UUb6cRgjfq9GqyEqcEV/P0Jo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895606; c=relaxed/simple; bh=LWCXHnt0lI6HVMyiY0mIILlqRl10sJ4sbWNqFpBGrAY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jJvRicPMKUanuxQ4VHHPw0cZ+yZMe/d1PUu8408K5wxNLeL7yl7IW7d2pWLP8sop2LS8c6g/Jk6iNinr9uUEUhN9PzEV9asQcuaHHd/GS1hJojurJIYeoCcV38RmDxhtWVX9gu0zRu8sgFkwNfbDkl+OUnxqOn0LzROFZvBppaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pQqL0XZC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6CD7C433C7; Fri, 2 Feb 2024 17:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706895605; bh=LWCXHnt0lI6HVMyiY0mIILlqRl10sJ4sbWNqFpBGrAY=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=pQqL0XZC4AgnGCUAheM2US7kN8E2taVhPfq2xU1Td4ADM8+U7e58s9xamhw8em+eH CIvs/tw2mbO+vBHXzIvqtbGMT2GSasmvGRtTNOypaefvph7TJc3Vzs3fdq/bmscbUD ngreHIIXBbGkOwvhUNdGtWW5b4ocUXLNDBDBV5FwZaf0So+l4ggS2dM9RvO6cMow2A 1InJBbLJtp4aAr8Psn6JgbozjyuGusl6a4MZAsoXy5poJm7cYLwGO0Q4YswrrdBWmw CY7dPmVt8N7JLs02cBhqk8F2ZTLTkUkilUmN1UM4iblnDjcvl4MuTqmr8U9ofWvEf8 eddTFVShUG8oQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 662A9CE2250; Fri, 2 Feb 2024 09:40:05 -0800 (PST) Date: Fri, 2 Feb 2024 09:40:05 -0800 From: "Paul E. McKenney" To: Tejun Heo Cc: Jonas Oberhauser , Lai Jiangshan , Petr Mladek , Steven Rostedt , John Ogness , Sergey Senozhatsky , Stephen Rothwell , linux-kernel@vger.kernel.org, rcu@vger.kernel.org Subject: Re: [BUG] workqueues and printk not playing nice since next-20240130 Message-ID: Reply-To: paulmck@kernel.org References: <410d6a87-bf34-457e-b714-1e6149d48532@paulmck-laptop> <25fd8537-5a27-4b62-9bf9-1ee7ca59b5b8@paulmck-laptop> 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: On Fri, Feb 02, 2024 at 06:56:28AM -1000, Tejun Heo wrote: > Hello, > > On Fri, Feb 02, 2024 at 08:35:51AM -0800, Paul E. McKenney wrote: > > Good point, and if this sort of thing happens frequently, perhaps there > > should be an easy way of doing this. One crude hack that might come > > pretty close would be to redefine the barrier() macro to be smp_mb(). > > > > But as noted earlier, -ENOREPRODUCE on today's -next. I will try the > > next several -next releases. But if they all get -ENOREPRODUCE, I owe > > everyone on CC an apology for having sent this report out before trying > > next-20240202. :-/ > > I think I saw that problem too but could reproduce it with or without the > workqueue changes, so I did the lazy thing "oh well, somebody is gonna fix > that" and just tested as-is. It's a bit worrying that ppl don't seem to > already know what the culprit is. Hmm... I can't reproduce it anymore > either. Glad that it is not just me! I think... ;-) > So, there is some chance that this may really be a subtle breakage. If you > ever see it happening again, triggering sysrq-t and capturing the dmesg > output (network should still work fine, so these shouldn't be too difficult) > may help. sysrq-t has workqueue state dump at the end which should clearly > indicate if anything is stalled in workqueue. Good point, if it does recur, I could try it on bare metal. > That said, another data point. In my test setup, I use the earlyprintk boot > option which enables console output way before than workqueue becomes > operational, so having on console output at all is highly unlikely to be > indicative of workqueue problem. My memory is hazy but it seems like I can > no longer reproduce the problem on the same git commit. Maybe it was a > problem on the qemu side? It might have been a qemu issue, but I am using the same qemu. No idea! But I will try earlyprintk if this happens again. Thanx, Paul