From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960AbbHKSbL (ORCPT ); Tue, 11 Aug 2015 14:31:11 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:38211 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751926AbbHKSbJ (ORCPT ); Tue, 11 Aug 2015 14:31:09 -0400 Subject: Re: [PATCH 2/2] ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem() References: <1439313556-13923-1-git-send-email-herton@redhat.com> <1439313556-13923-3-git-send-email-herton@redhat.com> Cc: "Herton R. Krzesinski" , linux-kernel@vger.kernel.org, Davidlohr Bueso , Rafael Aquini , Joe Perches , Aristeu Rozanski , djeffery@redhat.com To: Andrew Morton From: Manfred Spraul Message-ID: <55CA3F69.7040101@colorfullife.com> Date: Tue, 11 Aug 2015 20:31:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1439313556-13923-3-git-send-email-herton@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/2015 07:19 PM, Herton R. Krzesinski wrote: > After we acquire the sma->sem_perm lock in exit_sem(), we are protected against > a racing IPC_RMID operation. Also at that point, we are the last user of > sem_undo_list. Therefore it isn't required that we acquire or use ulp->lock. > > Signed-off-by: Herton R. Krzesinski Acked-by: Manfred Spraul -- Manfred