Skip to content

kernel/sys: reduce tasklist_lock usage get/set priorities

Davidlohr Bueso lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 6 repliesIn review

Changes in v2 from the cover letter

- split get and set into two patches.
- improved changelog.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kernel/sys: only rely on rcu for getpriority(2)kernel/sys.c+6 -25 replies
2/2kernel/sys: do not grab tasklist_lock for sys_setpriority(PRIO_PROCESS)kernel/sys.c+8 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH -next v2 0/2] kernel/sys: reduce tasklist_lock usage get/set priorities

Hi,

The following are two patches that deal with removing the tasklist_lock entirely in getpriority(2), and reducing the scope of it in setpriority(2). This also aligns somewhat to what we already do with io priorities - although there both set and get rely entirely on rcu.

Details in the changelog but this passes ltp tests. Please consider for v5.8.

Changes from v1:
- split get and set into two patches.
- improved changelog.

Thanks!

Davidlohr Bueso (2):
kernel/sys: only rely on rcu for getpriority(2)
kernel/sys: do not grab tasklist_lock for sys_setpriority(PRIO_PROCESS)

 kernel/sys.c | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
Signature · 1 line
2.26.1