From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932195AbeARWDe (ORCPT ); Thu, 18 Jan 2018 17:03:34 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37264 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752705AbeARWD0 (ORCPT ); Thu, 18 Jan 2018 17:03:26 -0500 Date: Thu, 18 Jan 2018 23:03:24 +0100 From: Pavel Machek To: Steven Rostedt Cc: Petr Mladek , Sergey Senozhatsky , akpm@linux-foundation.org, linux-mm@kvack.org, Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Vlastimil Babka , Peter Zijlstra , Linus Torvalds , Jan Kara , Mathieu Desnoyers , Tetsuo Handa , rostedt@rostedt.homelinux.com, Byungchul Park , Sergey Senozhatsky , Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes Message-ID: <20180118220323.GC17196@amd> References: <20180110132418.7080-1-pmladek@suse.com> <20180110132418.7080-2-pmladek@suse.com> <20180112115454.17c03c8f@gandalf.local.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0vzXIDBeUiKkjNJl" Content-Disposition: inline In-Reply-To: <20180112115454.17c03c8f@gandalf.local.home> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0vzXIDBeUiKkjNJl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > By other words, this deadlock was there even before. Such > > deadlocks are prevented by using printk_deferred() in > > the sections guarded by the lock A. >=20 > Petr, >=20 > Please add this here: >=20 > =3D=3D=3D=3D >=20 > To demonstrate the issue, this module has been shown to lock up a > system with 4 CPUs and a slow console (like a serial console). It is > also able to lock up a 8 CPU system with only a fast (VGA) console, by > passing in "loops=3D100". The changes in this commit prevent this module > from locking up the system. >=20 > #include > #include > #include > #include > #include > #include Programs in commit messages. Not preffered way to distribute code, I'd say. What about putting it into kernel selftests directory or something like that? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --0vzXIDBeUiKkjNJl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlphGasACgkQMOfwapXb+vLGWgCguDUXPlJK0TKjbQ47MUhvfKzb dB4AoKe/lH5K/FrGw3K3FS0jUtit0GxQ =jEBq -----END PGP SIGNATURE----- --0vzXIDBeUiKkjNJl--