diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-10-27 14:52:29 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-10-27 14:52:29 +0300 |
commit | d5432503bfb49f3425bad0b850714ffd8b533cfc (patch) | |
tree | 97926e7eea0b6d8b0e8bf98748dd9c0ef4c718ad /mm/mlock.c | |
parent | 6a98e34b58919c52e8c8beec991759999af342da (diff) | |
parent | c0d018bd5b1aabad59dffdec568e189359d93a14 (diff) | |
download | linux-d5432503bfb49f3425bad0b850714ffd8b533cfc.tar.xz |
Merge tag 'asoc-v3.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v3.18
A few small driver fixes for v3.18 plus the removal of the s6000 support
since the relevant chip is no longer supported in mainline.
Diffstat (limited to 'mm/mlock.c')
-rw-r--r-- | mm/mlock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/mlock.c b/mm/mlock.c index ce84cb0b83ef..73cf0987088c 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -233,9 +233,9 @@ long __mlock_vma_pages_range(struct vm_area_struct *vma, VM_BUG_ON(start & ~PAGE_MASK); VM_BUG_ON(end & ~PAGE_MASK); - VM_BUG_ON(start < vma->vm_start); - VM_BUG_ON(end > vma->vm_end); - VM_BUG_ON(!rwsem_is_locked(&mm->mmap_sem)); + VM_BUG_ON_VMA(start < vma->vm_start, vma); + VM_BUG_ON_VMA(end > vma->vm_end, vma); + VM_BUG_ON_MM(!rwsem_is_locked(&mm->mmap_sem), mm); gup_flags = FOLL_TOUCH | FOLL_MLOCK; /* @@ -789,7 +789,7 @@ static int do_mlockall(int flags) /* Ignore errors */ mlock_fixup(vma, &prev, vma->vm_start, vma->vm_end, newflags); - cond_resched(); + cond_resched_rcu_qs(); } out: return 0; |