Skip to content

A series patches about sched priority.

Dongsheng Yang linux-mm linux-s390 lkml ocfs2-devel 3 versions Applied

Status from this message: Applied to wq/for-3.15.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest17 patches 13 repliesApplied
  2. v216 patches 4 repliesSuperseded
  3. v115 patches 4 repliesSuperseded

Changelog from the cover letter

-v2:
*Splite [2/16] into two patches, one is about the whitespace changes, and
the other is about nice_to_rlimit().
-v1:
*Implement nice_to_rlimit and rlimit_to_nice with inline functions
rather than macro.
*Add a patch[16/16] to replace opened code implement with nice_to_rlimit().

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/17sched/prio: Add a inline function named nice_to_rlimit() in prio.h.include/linux/sched/prio.h+8 -00 replies
2/17kernel/sys: Fix the indent issue in switch.kernel/sys.c+102 -1020 replies
3/17kernel/sys: Replace opened code implementation with nice_to_rlimit().kernel/sys.c+3 -30 replies
4/17workqueue: Replace hardcoding of -20 with MIN_NICE.kernel/workqueue.c+3 -33 replies
5/17locktorture: Replace hardcoding of 19 with MAX_NICE.kernel/locking/locktorture.c+1 -10 replies
6/17tools/mq_perf_tests: Replace hardcoding of -20 with MIN_NICE.tools/testing/selftests/mqueue/mq_perf_tests.c+2 -20 replies
7/17mm: Replace hardcoding of 19 with MAX_NICE.mm/huge_memory.c+1 -10 replies
8/17ioprio: Add a macro named NICE_TO_IOPRIO.include/linux/ioprio.h+6 -12 replies
9/17fs/hearbeat: Replace hardcoding of -20 with MIN_NICE.fs/ocfs2/cluster/heartbeat.c+1 -10 replies
10/17driver/block: Replace hardcoding of -20 with MIN_NICE.drivers/block/loop.c drivers/block/nbd.c drivers/block/pktcdvd.c+3 -30 replies
11/17driver/char: Replace hardcoding of 19 with MAX_NICE.drivers/char/ipmi/ipmi_si_intf.c+1 -10 replies
12/17drivers/s390: Replace hardcoding of 19 with MAX_NICE.drivers/s390/crypto/ap_bus.c+1 -10 replies
13/17sched/prio: Add an inline function named rlimit_to_nice in prio.h.include/linux/sched/prio.h+8 -00 replies
14/17driver/staging/android: Use rlimit_to_nice to replace opened code implementation.drivers/staging/android/binder.c+2 -20 replies
15/17driver/staging/lustre: Replace hardcoding of -20 with MIN_NICE.drivers/staging/lustre/lustre/llite/lloop.c+1 -10 replies
16/17driver/scsi: Replace hardcoding of -20 with MIN_NICE.drivers/scsi/bnx2fc/bnx2fc_fcoe.c drivers/scsi/bnx2i/bnx2i_hwi.c drivers/scsi/fcoe/fcoe.c +4 more+8 -80 replies
17/17sched: Get rid of opened code implementation of funtion nice_to_rlimit().kernel/sched/core.c+1 -14 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH 00/17 for-tip V3] A series patches about sched priority.

Hi all,
This patchset is all about priority.

1. Add two inline functions in prio.h named nice_to_rlimit and rlimit_to_nice. They are converting the value between nice value [-20, 19] and rlimit style value [1, 40].
2. Add a macro in ioprio.h named NICE_TO_IOPRIO.
It convert nice value [-20, 19] to io priority [0, 7].
3. Others are all about replace hardcoding value about nice to MIN_NICE or MAX_NICE.

Changelog:
-v2:
*Splite [2/16] into two patches, one is about the whitespace changes, and
the other is about nice_to_rlimit().
-v1:
*Implement nice_to_rlimit and rlimit_to_nice with inline functions
rather than macro.
*Add a patch[16/16] to replace opened code implement with nice_to_rlimit().

Dongsheng Yang (16):
sched/prio: Add a inline function named nice_to_rlimit() in prio.h. kernel/sys: Replace opened code implementation with nice_to_rlimit().
workqueue: Replace hardcoding of -20 with MIN_NICE.
locktorture: Replace hardcoding of 19 with MAX_NICE. tools/mq_perf_tests: Replace hardcoding of -20 with MIN_NICE.
mm: Replace hardcoding of 19 with MAX_NICE.
ioprio: Add a macro named NICE_TO_IOPRIO.
fs/hearbeat: Replace hardcoding of -20 with MIN_NICE. driver/block: Replace hardcoding of -20 with MIN_NICE. driver/char: Replace hardcoding of 19 with MAX_NICE. drivers/s390: Replace hardcoding of 19 with MAX_NICE. sched/prio: Add an inline function named rlimit_to_nice in prio.h. driver/staging/android: Use rlimit_to_nice to replace opened code
implementation.
driver/staging/lustre: Replace hardcoding of -20 with MIN_NICE. driver/scsi: Replace hardcoding of -20 with MIN_NICE.
sched: Get rid of opened code implementation of funtion

    nice_to_rlimit().

Joe Perches (1):
kernel/sys: Fix the indent issue in switch.

 drivers/block/loop.c                           |   2 +-
 drivers/block/nbd.c                            |   2 +-
 drivers/block/pktcdvd.c                        |   2 +-
 drivers/char/ipmi/ipmi_si_intf.c               |   2 +-
 drivers/s390/crypto/ap_bus.c                   |   2 +-
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c              |   4 +-
 drivers/scsi/bnx2i/bnx2i_hwi.c                 |   2 +-
 drivers/scsi/fcoe/fcoe.c                       |   2 +-
 drivers/scsi/ibmvscsi/ibmvfc.c                 |   2 +-
 drivers/scsi/ibmvscsi/ibmvscsi.c               |   2 +-
 drivers/scsi/lpfc/lpfc_hbadisc.c               |   2 +-
 drivers/scsi/qla2xxx/qla_os.c                  |   2 +-
 drivers/staging/android/binder.c               |   4 +-
 drivers/staging/lustre/lustre/llite/lloop.c    |   2 +-
 fs/ocfs2/cluster/heartbeat.c                   |   2 +-
 include/linux/ioprio.h                         |   7 +-
 include/linux/sched/prio.h                     |  16 ++
 kernel/locking/locktorture.c                   |   2 +-
 kernel/sched/core.c                            |   2 +-
 kernel/sys.c                                   | 206 ++++++++++++-------------
 kernel/workqueue.c                             |   6 +-
 mm/huge_memory.c                               |   2 +-
 tools/testing/selftests/mqueue/mq_perf_tests.c |   4 +-
 23 files changed, 150 insertions(+), 129 deletions(-)
Signature · 1 line
1.8.2.1