mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
rust_binder: add call site for trace_transaction_update_buffer_release()
Call `trace_transaction_update_buffer_release()` when an outdated oneway transaction is superseded by a newer one. Signed-off-by: Sagar Taunk <sagartaunk@proton.me> Link: https://patch.msgid.link/20260927125622.676342-5-sagartaunk@proton.me Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2f32ed8233
commit
4a7c5799b4
|
|
@ -24,6 +24,7 @@
|
|||
process::{Process, ProcessInner},
|
||||
ptr_align,
|
||||
thread::{PushWorkRes, Thread},
|
||||
trace::trace_transaction_update_buffer_release,
|
||||
BinderReturnWriter, DArc, DLArc, DTRWrap, DeliverToRead,
|
||||
};
|
||||
|
||||
|
|
@ -356,6 +357,7 @@ pub(crate) fn submit(self: DLArc<Self>, info: &mut TransactionInfo) -> BinderRes
|
|||
if let Some(t_outdated) =
|
||||
target_node.take_outdated_transaction(&self, &mut process_inner)
|
||||
{
|
||||
trace_transaction_update_buffer_release(t_outdated.debug_id);
|
||||
let mut alloc_guard = t_outdated.allocation.lock();
|
||||
if let Some(alloc) = (*alloc_guard).as_mut() {
|
||||
// Take the oneway node to prevent `Allocation::drop` from calling
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user