diff --git a/arch/sh/mm/gup.c b/arch/sh/mm/gup.c index 56c86ca98ecfe7..075c8efe6c1d72 100644 --- a/arch/sh/mm/gup.c +++ b/arch/sh/mm/gup.c @@ -234,6 +234,9 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write, if (end < start) goto slow_irqon; + if (IS_ENABLED(CONFIG_SMP)) + goto slow_irqon; + local_irq_disable(); pgdp = pgd_offset(mm, addr); do {