Thread (23 messages) flat view 23 messages, 2 authors, 2014-07-10

[PATCH v9 09/11] seccomp: introduce writer locking

From: oleg@redhat.com (Oleg Nesterov)
Date: 2014-07-09 19:01:36
Also in: linux-api, linux-arch, linux-mips, lkml

On 06/27, Kees Cook wrote:
 void put_seccomp_filter(struct task_struct *tsk)
 {
-	struct seccomp_filter *orig = tsk->seccomp.filter;
+	struct seccomp_filter *orig = smp_load_acquire(&tsk->seccomp.filter);
 	/* Clean up single-reference branches iteratively. */
 	while (orig && atomic_dec_and_test(&orig->usage)) {
And this smp_load_acquire() looks unnecessary. atomic_dec_and_test()
is a barrier.

Oleg.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help