mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 08:39:52 +00:00
rcutorture: Print message before invoking ->cb_barrier()
The various ->cb_barrier() functions, for example, rcu_barrier(), sometimes cause rcutorture hangs. But currently, the last console message is the unenlightening "Stopping rcu_torture_stats". This commit therefore prints a message of the form "rcu_torture_cleanup: Invoking rcu_barrier+0x0/0x1e0()" to help point people in the right direction. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
da123016ca
commit
6f81bd6a4e
@ -2905,8 +2905,10 @@ rcu_torture_cleanup(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (torture_cleanup_begin()) {
|
if (torture_cleanup_begin()) {
|
||||||
if (cur_ops->cb_barrier != NULL)
|
if (cur_ops->cb_barrier != NULL) {
|
||||||
|
pr_info("%s: Invoking %pS().\n", __func__, cur_ops->cb_barrier);
|
||||||
cur_ops->cb_barrier();
|
cur_ops->cb_barrier();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!cur_ops) {
|
if (!cur_ops) {
|
||||||
@ -2961,8 +2963,10 @@ rcu_torture_cleanup(void)
|
|||||||
* Wait for all RCU callbacks to fire, then do torture-type-specific
|
* Wait for all RCU callbacks to fire, then do torture-type-specific
|
||||||
* cleanup operations.
|
* cleanup operations.
|
||||||
*/
|
*/
|
||||||
if (cur_ops->cb_barrier != NULL)
|
if (cur_ops->cb_barrier != NULL) {
|
||||||
|
pr_info("%s: Invoking %pS().\n", __func__, cur_ops->cb_barrier);
|
||||||
cur_ops->cb_barrier();
|
cur_ops->cb_barrier();
|
||||||
|
}
|
||||||
if (cur_ops->cleanup != NULL)
|
if (cur_ops->cleanup != NULL)
|
||||||
cur_ops->cleanup();
|
cur_ops->cleanup();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user