]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
crypto/pcrypt: Replace synchronize_rcu_bh() with synchronize_rcu()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 6 Nov 2018 00:57:40 +0000 (16:57 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 27 Nov 2018 17:18:59 +0000 (09:18 -0800)
Now that synchronize_rcu() waits for bh-disable regions of code as
well as RCU read-side critical sections, the synchronize_rcu_bh() in
pcrypt_cpumask_change_notify() can be replaced by synchronize_rcu().
This commit therefore makes this change.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: <linux-crypto@vger.kernel.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/pcrypt.c

index f8ec3d4ba4a80f8eefed739d9e8a852865a7ac02..8eb3c4c9ff678453b26e1aacc3767be896d422d7 100644 (file)
@@ -382,7 +382,7 @@ static int pcrypt_cpumask_change_notify(struct notifier_block *self,
 
        cpumask_copy(new_mask->mask, cpumask->cbcpu);
        rcu_assign_pointer(pcrypt->cb_cpumask, new_mask);
-       synchronize_rcu_bh();
+       synchronize_rcu();
 
        free_cpumask_var(old_mask->mask);
        kfree(old_mask);