aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorZqiang <[email protected]>2023-04-05 10:13:59 +0800
committerPaul E. McKenney <[email protected]>2023-05-09 17:26:21 -0700
commit1e237994d9c9a5ae47ae13030585a413a29469e6 (patch)
treea36700ddd7f2c0e90c1e50ec747be84cf37384e5 /lib/mpi/mpi-sub-ui.c
parentf32276a37652a9ce05db27cdfb40ac3e3fc98f9f (diff)
rcu/kvfree: Invoke debug_rcu_bhead_unqueue() after checking bnode->gp_snap
If kvfree_rcu_bulk() sees that the required grace period has failed to elapse, it leaks the memory because readers might still be using it. But in that case, the debug-objects subsystem still marks the relevant structures as having been freed, even though they are instead being leaked. This commit fixes this mismatch by invoking debug_rcu_bhead_unqueue() only when we are actually going to free the objects. Signed-off-by: Zqiang <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions