dsched - change loader tunables
authorAlex Hornung <ahornung@gmail.com>
Tue, 13 Apr 2010 18:49:24 +0000 (18:49 +0000)
committerAlex Hornung <ahornung@gmail.com>
Thu, 15 Apr 2010 20:24:51 +0000 (20:24 +0000)
* Change loader tunables to dsched_pol avoiding the '*' character as it
  isn't supported by the loader.

Reported-by: Petr Janda
sys/kern/subr_dsched.c

index 48bfcaa..01c392b 100644 (file)
@@ -141,21 +141,21 @@ dsched_create(struct disk *dp, const char *head_name, int unit)
        /* kprintf("dsched_create() for disk %s%d\n", head_name, unit); */
        lockmgr(&dsched_lock, LK_EXCLUSIVE);
 
-       ksnprintf(tunable_key, sizeof(tunable_key), "scheduler_%s%d",
+       ksnprintf(tunable_key, sizeof(tunable_key), "dsched_pol_%s%d",
            head_name, unit);
        if (TUNABLE_STR_FETCH(tunable_key, sched_policy,
            sizeof(sched_policy)) != 0) {
                policy = dsched_find_policy(sched_policy);
        }
 
-       ksnprintf(tunable_key, sizeof(tunable_key), "scheduler_%s*",
+       ksnprintf(tunable_key, sizeof(tunable_key), "dsched_pol_%s",
            head_name);
        if (!policy && (TUNABLE_STR_FETCH(tunable_key, sched_policy,
            sizeof(sched_policy)) != 0)) {
                policy = dsched_find_policy(sched_policy);
        }
 
-       ksnprintf(tunable_key, sizeof(tunable_key), "scheduler_*");
+       ksnprintf(tunable_key, sizeof(tunable_key), "dsched_pol");
        if (!policy && (TUNABLE_STR_FETCH(tunable_key, sched_policy,
            sizeof(sched_policy)) != 0)) {
                policy = dsched_find_policy(sched_policy);