From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759919Ab3ICKcK (ORCPT ); Tue, 3 Sep 2013 06:32:10 -0400 Received: from us02smtp2.synopsys.com ([198.182.60.77]:36922 "EHLO alvesta.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759881Ab3ICKcI convert rfc822-to-8bit (ORCPT ); Tue, 3 Sep 2013 06:32:08 -0400 From: Vineet Gupta 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" Subject: ipc msg now works (was Re: ipc-msg broken again on 3.11-rc7?) Thread-Topic: ipc msg now works (was Re: ipc-msg broken again on 3.11-rc7?) Thread-Index: AQHOqJDTVjcFttm9g0KxvFe0CG0NcA== 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> Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.239.235] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/03/2013 03:47 PM, Manfred Spraul wrote: > Hi Vineet, > > On 09/03/2013 11:51 AM, Vineet Gupta wrote: >> On 09/03/2013 02:53 PM, Manfred Spraul wrote: >>> The access to msq->q_cbytes is not protected. >>> >>> Vineet, could you try to move the test for free space after ipc_lock? >>> I.e. the lock must not get dropped between testing for free space and >>> enqueueing the messages. >> Hmm, the code movement is not trivial. I broke even the simplest of cases (patch >> attached). This includes the additional change which Linus/Davidlohr had asked for. > The attached patch should work. Could you try it? > Yes this did the trick, now the default config of 100k iterations + 16 processes runs to completion. Thx, -Vineet