[all-commits] [llvm/llvm-project] 304c5a: [Offload] Flush pending RPC ports when tearing dow...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jun 18 16:30:35 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 304c5a6587d4c23a920cc63e10c9337e285f41f9
      https://github.com/llvm/llvm-project/commit/304c5a6587d4c23a920cc63e10c9337e285f41f9
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2026-06-18 (Thu, 18 Jun 2026)

  Changed paths:
    M offload/plugins-nextgen/common/src/RPC.cpp

  Log Message:
  -----------
  [Offload] Flush pending RPC ports when tearing down a device (#204681)

The RPC client can push asynchronous work and then quit. These can be
lost if the kernel returns and is torn down before the RPC server gets
to run to check it. To handle this, we just manually flush the interface
once when we tear the device down. The interface is lock-free so this
should be safe even if the other thread is working through it as well.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list