Thread (63 messages) 63 messages, 12 authors, 2015-12-04

Re: [PATCH 10/23] userfaultfd: add new syscall to provide memory externalization

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2015-05-15 18:22:13
Also in: kvm, linux-mm, lkml, qemu-devel

On Fri, May 15, 2015 at 9:04 AM, Andrea Arcangeli [off-list ref] wrote:
To fix it I added this along a comment:
Ok, this looks good as a explanation/fix for the races (and also as an
example of my worry about waitqueue_active() use in general).

However, it now makes me suspect that the optimistic "let's check if
they are even active" may not be worth it any more. You're adding a
"smp_mb()" in order to avoid taking the real lock. Although I guess
there are two locks there (one for each wait-queue) so maybe it's
worth it.

                    Linus

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help