From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756159AbdKCLzC (ORCPT ); Fri, 3 Nov 2017 07:55:02 -0400 Received: from smtprelay0116.hostedemail.com ([216.40.44.116]:39681 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751810AbdKCLzB (ORCPT ); Fri, 3 Nov 2017 07:55:01 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2194:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3622:3865:3867:3868:3871:3874:4411:4432:5007:6261:6742:7875:10004:10400:10848:10967:11026:11232:11658:11914:12740:12760:12895:13069:13255:13311:13357:13439:14181:14659:14721:21080:21324:21627:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: cable13_e5db2317dd3a X-Filterd-Recvd-Size: 2138 Date: Fri, 3 Nov 2017 07:54:56 -0400 From: Steven Rostedt To: John Hubbard Cc: Vlastimil Babka , LKML , Peter Zijlstra , , , Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Petr Mladek , Sergey Senozhatsky , "yuwang.yuwang" , Linus Torvalds , Jan Kara , Mathieu Desnoyers , Tetsuo Handa Subject: Re: [PATCH v3] printk: Add console owner and waiter logic to load balance console writes Message-ID: <20171103075456.15cd811e@vmware.local.home> In-Reply-To: <20171103075404.14f9058a@vmware.local.home> References: <20171102134515.6eef16de@gandalf.local.home> <82a3df5e-c8ad-dc41-8739-247e5034de29@suse.cz> <9f3bbbab-ef58-a2a6-d4c5-89e62ade34f8@nvidia.com> <20171103072121.3c2fd5ab@vmware.local.home> <20171103075404.14f9058a@vmware.local.home> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Nov 2017 07:54:04 -0400 Steven Rostedt wrote: > The new waiter gets set only if there isn't already a waiter *and* > there is an owner that is not current (and with the printk_safe_enter I > don't think that is even needed). > > + while (!READ_ONCE(console_waiter)) > + cpu_relax(); I still need to fix the patch. I cut and pasted the bad version. This should have been: while (READ_ONCE(console_waiter)) cpu_relax(); -- Steve