Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755355Ab3CZSPF (ORCPT ); Tue, 26 Mar 2013 14:15:05 -0400 Received: from shelob.surriel.com ([74.92.59.67]:44742 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754330Ab3CZSPA (ORCPT ); Tue, 26 Mar 2013 14:15:00 -0400 Message-ID: <5151E590.70909@surriel.com> Date: Tue, 26 Mar 2013 14:14:40 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Davidlohr Bueso CC: Emmanuel Benisty , Linus Torvalds , Linux Kernel Mailing List , Andrew Morton , hhuang@redhat.com, "Low, Jason" , Michel Lespinasse , Larry Woodman , "Vinod, Chegu" Subject: Re: ipc,sem: sysv semaphore scalability References: <1363809337-29718-1-git-send-email-riel@surriel.com> <1364320767.5146.11.camel@buesod1.americas.hpqcorp.net> In-Reply-To: <1364320767.5146.11.camel@buesod1.americas.hpqcorp.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 733 Lines: 21 On 03/26/2013 01:59 PM, Davidlohr Bueso wrote: > From: Davidlohr Bueso > Subject: [PATCH] ipc, sem: prevent possible deadlock > > In semctl_main(), when cmd == GETALL, we're locking > sma->sem_perm.lock (through sem_lock_and_putref), yet > after the conditional, we lock it again. > Unlock sma right after exiting the conditional. > > Signed-off-by: Davidlohr Bueso Reviewed-by: Rik van Riel -- All rights reversed. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/