summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.ibm.com>2018-11-05 16:57:40 -0800
committerPaul E. McKenney <paulmck@linux.ibm.com>2018-11-27 09:18:59 -0800
commit4380511e84181ecd58fd2b614614fb2c784dd90f (patch)
tree8ed6d1ece0c30e89bb64eb1392a0e4f142ebe89b /crypto
parentc7ef39a437ecd8db2f7f3c7b36cbcc1eeb525636 (diff)
downloadlinux-crypto-4380511e84181ecd58fd2b614614fb2c784dd90f.tar.gz
linux-crypto-4380511e84181ecd58fd2b614614fb2c784dd90f.zip
crypto/pcrypt: Replace synchronize_rcu_bh() with synchronize_rcu()
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>
Diffstat (limited to '')
-rw-r--r--crypto/pcrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c
index f8ec3d4b..8eb3c4c9 100644
--- a/crypto/pcrypt.c
+++ b/crypto/pcrypt.c
@@ -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);