From: David Hildenbrand Date: Thu, 15 Oct 2015 08:47:18 +0000 (+0200) Subject: s390: get_user_pages_fast() might sleep X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=406123517b5b3cd5855774f80d685cf393c950f6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390: get_user_pages_fast() might sleep Let's annotate it correctly, so we directly get a warning if we ever were to use it in atomic/preempt_disable/spinlock environment. Acked-by: Heiko Carstens Signed-off-by: David Hildenbrand Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/mm/gup.c b/arch/s390/mm/gup.c index 12bbf0e8478f..21c74a71e2ab 100644 --- a/arch/s390/mm/gup.c +++ b/arch/s390/mm/gup.c @@ -233,6 +233,7 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write, struct mm_struct *mm = current->mm; int nr, ret; + might_sleep(); start &= PAGE_MASK; nr = __get_user_pages_fast(start, nr_pages, write, pages); if (nr == nr_pages)