Introduce req.kv container for coupled owned kv field lifecycle (#29427)

This commit is contained in:
fzyzcjy
2026-07-15 14:40:38 +08:00
committed by GitHub
parent 201ddeaba1
commit d8d76c4d12
24 changed files with 132 additions and 113 deletions
@@ -45,7 +45,7 @@ class ScriptedReqHandle:
if req is None or req.req_pool_idx is None:
return 0
page_size = self.context.scheduler.page_size
return (req.kv_allocated_len + page_size - 1) // page_size
return (req.kv.kv_allocated_len + page_size - 1) // page_size
@property
def lock_refs(self) -> int: