[PATCH 1/2] mm: bring in additional flag for fixup_user_fault to signal unlock

2016-01-04 Thread Dominik Dingel
With the introduction of userfaultfd, kvm on s390 needs fixup_user_fault to pass in FAULT_FLAG_ALLOW_RETRY and give feedback if during the faulting we ever unlocked mmap_sem. This patch brings in the logic to handle retries as well as it cleans up the current documentation. fixup_user_fault was n

Re: [PATCH 1/2] mm: bring in additional flag for fixup_user_fault to signal unlock

2015-12-04 Thread Andrea Arcangeli
On Thu, Nov 26, 2015 at 06:27:01PM +0100, Dominik Dingel wrote: > @@ -599,6 +603,10 @@ int fixup_user_fault(struct task_struct *tsk, struct > mm_struct *mm, > if (!(vm_flags & vma->vm_flags)) > return -EFAULT; > > + if (unlocked) > + fault_flags |= FAULT_FLAG_

[PATCH 1/2] mm: bring in additional flag for fixup_user_fault to signal unlock

2015-11-26 Thread Dominik Dingel
With the introduction of userfaultfd, kvm on s390 needs fixup_user_fault to pass in FAULT_FLAG_ALLOW_RETRY and give feedback if during the faulting we ever unlocked mmap_sem. This patch brings in the logic to handle retries as well as it cleans up the current documentation. fixup_user_fault was n