From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756966AbaHGILL (ORCPT ); Thu, 7 Aug 2014 04:11:11 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:42827 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754016AbaHGILI (ORCPT ); Thu, 7 Aug 2014 04:11:08 -0400 Date: Thu, 7 Aug 2014 10:10:47 +0200 From: Peter Zijlstra To: David Miller Cc: ilya.dryomov@inktank.com, mingo@kernel.org, oleg@redhat.com, torvalds@linux-foundation.org, tglx@linutronix.de, umgwanakikbuti@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC][PATCH 0/7] nested sleeps, fixes and debug infra Message-ID: <20140807081047.GH19379@twins.programming.kicks-ass.net> References: <20140805130646.GZ19379@twins.programming.kicks-ass.net> <20140806083134.GQ9918@twins.programming.kicks-ass.net> <20140806.141603.1422005306896590750.davem@davemloft.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nBPD9h0elHGaLLTu" Content-Disposition: inline In-Reply-To: <20140806.141603.1422005306896590750.davem@davemloft.net> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nBPD9h0elHGaLLTu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 06, 2014 at 02:16:03PM -0700, David Miller wrote: > From: Peter Zijlstra > Date: Wed, 6 Aug 2014 10:31:34 +0200 >=20 > > On Wed, Aug 06, 2014 at 11:51:29AM +0400, Ilya Dryomov wrote: > >=20 > >> OK, this one is a bit different. > >>=20 > >> WARNING: CPU: 1 PID: 1744 at kernel/sched/core.c:7104 __might_sleep+0x= 58/0x90() > >> do not call blocking ops when !TASK_RUNNING; state=3D1 set at [] prepare_to_wait+0x50 /0xa0 > >=20 > >> [] __might_sleep+0x58/0x90 > >> [] lock_sock_nested+0x31/0xb0 > >> [] sk_stream_wait_memory+0x18a/0x2d0 > >=20 > > Urgh, tedious. Its not an actual bug as is. Due to the condition check > > in sk_wait_event() we can call lock_sock() with ->state !=3D TASK_RUNNI= NG. > >=20 > > I'm not entirely sure what the cleanest way is to make this go away. > > Possibly something like so: >=20 > If you submit this formally to netdev with a signoff I'm willing to apply > this if it helps the debug infrastructure. Thanks, for now I'm just collecting things to see how far I can take this. But I'll certainly include you and netdev on a next posting. --nBPD9h0elHGaLLTu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJT4zSCAAoJEHZH4aRLwOS6drwP/Rqu531RhKIbPZ9wf1O+ABhh 5qdSyPXKToCclNZVU9EiFKiyiFA1il6jPUGssfT9/oxjs5Kr7u08OampiMlySr91 2E+SH+Aep+vT78ZeVgWupUHkMk/mmwW0xCDlCs5Xi2bFrreNu12BKfaXtPA1BSdA vmWaLe5R4qVOEX+Jjt3dSPiLSlTwRooyXTvc5NangOubciIJ/XBsLIV+3yTy+2xj pe92fxcKCFC61SlpdP1T3po5UzEUK0Wb8Pfn7jDVTwhhBpWpgjOCYsbauYpvGgUC urQRk69LQzgy8090ldiATK6ITV/JNOlo+XQSfhNwWPb91P3Z2AtJG5oEZIDRYmux O8vMQdpe9k14KJwLkBDiUTat5nH30xjI0Dmyr8W19hV/X4AwiBUI+JdrCUBt21h4 GvtrdTUu7MndUzfpjq+JMORzZY5NL6VbHfJxrOrHaJK5F3pE7kMZs/yTxm+Wu3HK 96UjmZ/B9orJ9hIdGp+SWM5t/AfxpjRUxHNBG2FxMo0WSN7+qMC+hf8yf/YBKMrv /YWB3LfCBhr3ovHKBKKP0Z8W/Z5eeFKCdsqdNyeLr4hksKbLqFNP1wLs+uD98Zqq eQQSz7b6irtT7uSKbrp+wfzblXG4AkJUezgfLLKTuqy6yvVmfbCa9pKUD5+tC1FG A6pazvhVIT9BiSsahp9T =pnaO -----END PGP SIGNATURE----- --nBPD9h0elHGaLLTu--