[Bugfix] Skip absent radix lock during cache cleanup (#37494)

This commit is contained in:
YAMY
2026-09-01 22:50:19 -07:00
committed by GitHub
parent c66a285c94
commit a6a19f9290
2 changed files with 48 additions and 1 deletions
@@ -903,7 +903,9 @@ class UnifiedRadixCache(BasePrefixCache):
else:
self.free_kv_row(req.kv, [(req.kv.cache_protected_len, kv_len_to_handle)])
self._dec_req_lock(req, skip_swa=req.swa_prefix_lock_released)
# Synthetic profiling requests may own KV without locking a tree node.
if req.last_node is not None:
self._dec_req_lock(req, skip_swa=req.swa_prefix_lock_released)
if is_insert and result is not None and result.last_device_node is not None:
req.last_node = result.last_device_node