[LTP] [PATCH] sys_block_queue01: Accept plain "none" in queue/scheduler

Cyril Hrubis chrubis@suse.cz
Wed Nov 18 10:11:02 CET 2026


Hi!
> +	/*
> +	 * elv_iosched_show() emits plain "none\n" without brackets for queues
> +	 * that do not support I/O schedulers (bio-based devices prior to 6.5,
> +	 * and BLK_MQ_F_NO_SCHED devices prior to 6.14).
> +	 */
> +	if (!strcmp(sched, "none")) {
> +		tst_res(TPASS, PATH_SYS_BLOCK "/%s/queue/scheduler = 'none'", dev);
> +		return;
> +	}
> +
> +	TST_SYSFS_ASSERT_CHOICE(sched_allowed, NULL, 0,
> +				PATH_SYS_BLOCK "/%s/queue/scheduler", dev);


This does not make any sense. Why haven't you simply added "none" to the
sched_allowed array instead?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list