Skip to content

Commit 42cdf96

Browse files
joelagnelchantra
authored andcommitted
rxrpc: Use call_rcu_flush() instead of call_rcu()
call_rcu() changes to save power may cause slowness. Use the call_rcu_flush() API instead which reverts to the old behavior. We find this via inspection that the RCU callback does a wakeup of a thread. This usually indicates that something is waiting on it. To be safe, let us use call_rcu_flush() here instead. Signed-off-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 6d109bd commit 42cdf96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rxrpc/conn_object.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void rxrpc_kill_connection(struct rxrpc_connection *conn)
253253
* must carry a ref on the connection to prevent us getting here whilst
254254
* it is queued or running.
255255
*/
256-
call_rcu(&conn->rcu, rxrpc_destroy_connection);
256+
call_rcu_flush(&conn->rcu, rxrpc_destroy_connection);
257257
}
258258

259259
/*

0 commit comments

Comments
 (0)