Re: [PATCH v16 09/16] x86/sgx: Add basic EPC reclamation flow for cgroup

From
Huang, Kai <hidden>
Date
2024-08-27 23:42:58
Also in
lkml
Reply to
Haitao Huang, 2024-08-21
2) For on-demand synchronous reclamation, sgx_cgroup_try_charge() needs
    to invoke the per-cgroup reclamation until the cgroup usage become
"become" -> "becomes"
quoted hunk ↗ jump to hunk
  
+/*
+ * Return the next descendant in a preorder walk, given a root, @root and a
+ * cgroup, @cg, to start the walk from. Return @root if no descendant left for
+ * this walk, Otherwise, return next descendant and has its refcnt incremented.
"," -> "." before the "Otherwise".

"has its refcnt ..." -> "have its refcnt ...",

Or, "return ... with its refcnt ..." (which is better I guess).
quoted hunk ↗ jump to hunk
+ */
+static struct sgx_cgroup *sgx_cgroup_next_descendant_pre(struct sgx_cgroup *root,
+							 struct sgx_cgroup *cg)
+{
Reviewed-by: Kai Huang <redacted>
Thread (42 messages) 42 messages, 4 authors, last reply 2024-08-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help