-
-
-
usr/src/test/os-tests/tests/timer/timer_limit.c (Diff revision 1) Does using the assert()'s in test case make sense? Getting descriptive failure reason instead of a core seems better to me.
-
-
usr/src/uts/common/os/timer.c (Diff revision 1) And here we could check for != NULL and going to line 578, reducing indentation even further which helps readability.
-
usr/src/uts/common/os/timer.c (Diff revision 1) This else isn't really needed as we did 'goto' in other branch, removing it would help reduce indentation.
increase timers allowed per-process
Review Request #2567 — Created May 26, 2020 and submitted
Information | |
---|---|
jbk | |
illumos-gate | |
12789 | |
Reviewers | |
general | |
increase timers allowed per-process
- 1
- 0
- 10
- 2
- 13
Description | From | Last Updated |
---|---|---|
why did we lose the comment about dropping p_lock here? It's unusual behaviour (and I'm not clear why we even ... |
|
Change Summary:
Add in OS-5806
Diff: |
Revision 3 (+303 -64)
|
---|
Diff: |
Revision 4 (+303 -64)
|
---|
-
-
usr/src/uts/common/os/timer.c (Diff revision 4) Takes the lock without being named as such, and keeps it even on error? I'm not a fan! Please just take p_lock before its single call site, then make it assert its held when we call it.
-
usr/src/uts/common/os/timer.c (Diff revision 4) inverting this check would reduce indentation of the rest, and make the common path more obvious
-
usr/src/uts/common/os/timer.c (Diff revision 4) why did we lose the comment about dropping p_lock here? It's unusual behaviour (and I'm not clear why we even do it)
-
-
usr/src/uts/common/sys/timer.h (Diff revision 4) If we're going to document this we should clarify that this is clamped to a minimum of NCPUS * 4 ?
-
-
usr/src/uts/common/os/timer.c (Diff revision 4) NIT: Why the braces for a single-line return (NULL);?
-
-
usr/src/uts/common/sys/proc.h (Diff revision 4) NOTE TO SELF: There are a LOT of holes in "struct proc" that should probably cause a rearrangement.
-
-
usr/src/uts/common/os/timer.c (Diff revision 4) I suspect the reason is to avoid holding
p->p_lock
while doing aKM_SLEEP
alloc. However, that can be worked around fairly easily. -
usr/src/uts/common/os/timer.c (Diff revision 4) I can rearrange things here that I think make it easier to follow.
-
usr/src/uts/common/os/timer.c (Diff revision 4) I think the idea is to avoid holding
p->p_lock
during a sleeping alloc. -
Diff: |
Revision 5 (+310 -63)
|
---|
Diff: |
Revision 6 (+308 -63)
|
---|