linux-next: manual merge of the sysctl tree with the tip tree
Hi all,
Today's linux-next merge of the sysctl tree got a conflict in:
kernel/sched/deadline.c
between commit:
eb77cf1c151c ("sched/deadline: Remove unused def_dl_bandwidth")
from the tip tree and commit:
ebb891f03580 ("sched: Move deadline_period sysctls to deadline.c")
from the sysctl tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
Signature · 50 lines
Cheers,
Stephen Rothwell
diff --cc kernel/sched/deadline.c
index 11cdc6d0c45f,9ed9ace11151..000000000000
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@@ -18,6 -18,42 +18,40 @@@
#include "sched.h"
#include "pelt.h"
-struct dl_bandwidth def_dl_bandwidth;
-
+ /*
+ * Default limits for DL period; on the top end we guard against small util
+ * tasks still getting ridiculously long effective runtimes, on the bottom end we
+ * guard against timer DoS.
+ */
+ static unsigned int sysctl_sched_dl_period_max = 1 << 22; /* ~4 seconds */
+ static unsigned int sysctl_sched_dl_period_min = 100; /* 100 us */
+ #ifdef CONFIG_SYSCTL
+ static struct ctl_table sched_dl_sysctls[] = {
+ {
+ .procname = "sched_deadline_period_max_us",
+ .data = &sysctl_sched_dl_period_max,
+ .maxlen = sizeof(unsigned int),
+ .mode = 0644,
+ .proc_handler = proc_dointvec,
+ },
+ {
+ .procname = "sched_deadline_period_min_us",
+ .data = &sysctl_sched_dl_period_min,
+ .maxlen = sizeof(unsigned int),
+ .mode = 0644,
+ .proc_handler = proc_dointvec,
+ },
+ {}
+ };
+
+ static int __init sched_dl_sysctl_init(void)
+ {
+ register_sysctl_init("kernel", sched_dl_sysctls);
+ return 0;
+ }
+ late_initcall(sched_dl_sysctl_init);
+ #endif
+
static inline struct task_struct *dl_task_of(struct sched_dl_entity *dl_se)
{
return container_of(dl_se, struct task_struct, dl);Quoted 8 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the sysctl tree got a conflict in:
kernel/sched/deadline.cbetween commit:
Quoted 7 lines
eb77cf1c151c("sched/deadline: Remove unuseddef_dl_bandwidth")from the tip tree and commit:
ebb891f03580("sched: Movedeadline_periodsysctls todeadline.c")from the sysctl tree.
Peter,
to help avoid conflicts I spinned up a sysctl-next tree to collect different cleanups going on kernel/sysctl.c. I can drop ebb891f03580 ("sched: Move deadline_period sysctls to deadline.c") but I think we'd still run into conflicts as other sysctls are trimmed out. Would you be OK in me taking in eb77cf1c151c ("sched/deadline: Remove unused def_dl_bandwidth") to avoid this conflict?
Luis
Hi Luis,
Quoted 20 lines · On Tue, 15 Mar 2022 13:17:43 -0700 Luis Chamberlain <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the sysctl tree got a conflict in:
kernel/sched/deadline.cbetween commit:
Quoted 7 lines
eb77cf1c151c("sched/deadline: Remove unuseddef_dl_bandwidth")from the tip tree and commit:
ebb891f03580("sched: Movedeadline_periodsysctls todeadline.c")from the sysctl tree.
Peter,
Quoted 7 lines
to help avoid conflicts I spinned up a sysctl-next tree to collect different cleanups going on
kernel/sysctl.c. I can dropebb891f03580("sched: Movedeadline_periodsysctls todeadline.c") but I think we'd still run into conflicts as other sysctls are trimmed out. Would you be OK in me taking ineb77cf1c151c("sched/deadline: Remove unuseddef_dl_bandwidth") to avoid this conflict?
Its really a trivial conflict and just needs to be mentioned to Linus in the pull requests.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 31 lines · Stephen Rothwell
Hi Luis,
Quoted 20 lines · On Tue, 15 Mar 2022 13:17:43 -0700 Luis Chamberlain <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the sysctl tree got a conflict in:
kernel/sched/deadline.cbetween commit:
Quoted 7 lines
eb77cf1c151c("sched/deadline: Remove unuseddef_dl_bandwidth")from the tip tree and commit:
ebb891f03580("sched: Movedeadline_periodsysctls todeadline.c")from the sysctl tree.
Peter,
Quoted 7 lines
to help avoid conflicts I spinned up a sysctl-next tree to collect different cleanups going on
kernel/sysctl.c. I can dropebb891f03580("sched: Movedeadline_periodsysctls todeadline.c") but I think we'd still run into conflicts as other sysctls are trimmed out. Would you be OK in me taking ineb77cf1c151c("sched/deadline: Remove unuseddef_dl_bandwidth") to avoid this conflict?
Quoted 2 lines
Its really a trivial conflict and just needs to be mentioned to Linus in the pull requests.
Ah alrighty! Thanks!
Luis