Re: [PATCH RFC 20/24] userfaultfd: wp: don't wake up when doing write protect

2019-01-23 Thread Peter Xu
On Mon, Jan 21, 2019 at 01:10:39PM +0200, Mike Rapoport wrote: > On Mon, Jan 21, 2019 at 03:57:18PM +0800, Peter Xu wrote: > > It does not make sense to try to wake up any waiting thread when we're > > write-protecting a memory region. Only wake up when resolving a write > > protected page fault.

Re: [PATCH RFC 20/24] userfaultfd: wp: don't wake up when doing write protect

2019-01-21 Thread Mike Rapoport
On Mon, Jan 21, 2019 at 03:57:18PM +0800, Peter Xu wrote: > It does not make sense to try to wake up any waiting thread when we're > write-protecting a memory region. Only wake up when resolving a write > protected page fault. Probably it would be better to make it default to wake up only when re

[PATCH RFC 20/24] userfaultfd: wp: don't wake up when doing write protect

2019-01-21 Thread Peter Xu
It does not make sense to try to wake up any waiting thread when we're write-protecting a memory region. Only wake up when resolving a write protected page fault. Signed-off-by: Peter Xu --- fs/userfaultfd.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/fs/us