s390/mm: Convert tlb_table_flush() to use call_rcu()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 30 Oct 2018 23:30:07 +0000 (16:30 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 9 Nov 2018 05:43:20 +0000 (21:43 -0800)
Now that call_rcu()'s callback is not invoked until after all
preempt-disable regions of code have completed (in addition to explicitly
marked RCU read-side critical sections), call_rcu() can be used in place
of call_rcu_sched().  This commit therefore makes that change.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: <linux-s390@vger.kernel.org>
arch/s390/mm/pgalloc.c

index 76d89ee8b428837fc6c32f962d0104787caa29a3..da64e4b9324e4ac5a13e3b4b0d67c0e35e127b3c 100644 (file)
@@ -350,7 +350,7 @@ void tlb_table_flush(struct mmu_gather *tlb)
        struct mmu_table_batch **batch = &tlb->batch;
 
        if (*batch) {
-               call_rcu_sched(&(*batch)->rcu, tlb_remove_table_rcu);
+               call_rcu(&(*batch)->rcu, tlb_remove_table_rcu);
                *batch = NULL;
        }
 }