summaryrefslogtreecommitdiff
path: root/arch/s390/mm/gup.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>2015-10-15 11:47:18 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-11-27 11:24:15 +0300
commit406123517b5b3cd5855774f80d685cf393c950f6 (patch)
treea497fa0a667d6143b8d8ffef02036d8c0a98b5ec /arch/s390/mm/gup.c
parentdb1c45154a82195ad0b4d45d0e330ebac6883b70 (diff)
downloadlinux-406123517b5b3cd5855774f80d685cf393c950f6.tar.xz
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 <heiko.carstens@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm/gup.c')
-rw-r--r--arch/s390/mm/gup.c1
1 files changed, 1 insertions, 0 deletions
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)