From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx180.postini.com [74.125.245.180]) by kanga.kvack.org (Postfix) with SMTP id 6445C6B0033 for ; Tue, 3 Sep 2013 06:32:08 -0400 (EDT) From: Vineet Gupta Subject: ipc msg now works (was Re: ipc-msg broken again on 3.11-rc7?) Date: Tue, 3 Sep 2013 10:32:04 +0000 Message-ID: References: <52205597.3090609@synopsys.com> <5224BCF6.2080401@colorfullife.com> <5225A466.2080303@colorfullife.com> <5225AA8D.6080403@colorfullife.com> <5225B716.3090708@colorfullife.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Manfred Spraul Cc: Linus Torvalds , Davidlohr Bueso , Sedat Dilek , Davidlohr Bueso , linux-next , LKML , Stephen Rothwell , Andrew Morton , linux-mm , Andi Kleen , Rik van Riel , Jonathan Gonzalez On 09/03/2013 03:47 PM, Manfred Spraul wrote:=0A= > Hi Vineet,=0A= >=0A= > On 09/03/2013 11:51 AM, Vineet Gupta wrote:=0A= >> On 09/03/2013 02:53 PM, Manfred Spraul wrote:=0A= >>> The access to msq->q_cbytes is not protected.=0A= >>>=0A= >>> Vineet, could you try to move the test for free space after ipc_lock?= =0A= >>> I.e. the lock must not get dropped between testing for free space and= =0A= >>> enqueueing the messages.=0A= >> Hmm, the code movement is not trivial. I broke even the simplest of case= s (patch=0A= >> attached). This includes the additional change which Linus/Davidlohr had= asked for.=0A= > The attached patch should work. Could you try it?=0A= >=0A= =0A= Yes this did the trick, now the default config of 100k iterations + 16 proc= esses=0A= runs to completion.=0A= =0A= Thx,=0A= -Vineet=0A= -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org