Skip to content

Commit 0245b80

Browse files
author
Paul E. McKenney
committed
net/core/skmsg: Replace call_rcu_sched() with call_rcu()
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: John Fastabend <john.fastabend@gmail.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: <netdev@vger.kernel.org>
1 parent 6932689 commit 0245b80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/core/skmsg.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ void sk_psock_drop(struct sock *sk, struct sk_psock *psock)
580580
write_unlock_bh(&sk->sk_callback_lock);
581581
sk_psock_clear_state(psock, SK_PSOCK_TX_ENABLED);
582582

583-
call_rcu_sched(&psock->rcu, sk_psock_destroy);
583+
call_rcu(&psock->rcu, sk_psock_destroy);
584584
}
585585
EXPORT_SYMBOL_GPL(sk_psock_drop);
586586

0 commit comments

Comments
 (0)