Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1205368

Re: [PATCH 2/2] ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()

From Manfred Spraul <manfred@colorfullife.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()
Date 2015-08-11 20:40 +0200
Message-ID <pWmCT-519-31@gated-at.bofh.it> (permalink)
References <pWlnr-3c7-5@gated-at.bofh.it> <pWlns-3c7-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <herton@redhat.com>
Acked-by: Manfred Spraul <manfred@colorfullife.com>

-- 
     Manfred
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem() "Herton R. Krzesinski" <herton@redhat.com> - 2015-08-11 19:20 +0200
  Re: [PATCH 2/2] ipc,sem: remove uneeded sem_undo_list lock usage in  exit_sem() Manfred Spraul <manfred@colorfullife.com> - 2015-08-11 20:40 +0200

csiph-web