From: hehuiwen <huiwen.he@linux.dev>
To: ChenXiaoSong <chenxiaosong@chenxiaosong.com>, linux-cifs@vger.kernel.org
Cc: linkinjeon@kernel.org, stefan.chulski@broadcom.com
Subject: Re: [PATCH] ksmbd-tools: add the "server request workqueue" option
Date: Tue, 1 Dec 2026 18:36:13 +0800 [thread overview]
Message-ID: <eea5ad82-ea1d-4a2e-b415-421f800f0032@linux.dev> (raw)
In-Reply-To: <b08ec465-ad26-4335-85fb-9027f32ce290@chenxiaosong.com>
Thanks for pointing this out.
In v2, unrecognized values will fall back to "percpu" like
other global options, so tools such as ksmbd.adduser are no
longer affected (verified with an invalid value in ksmbd.conf).
Thanks,
Huiwen
在 2026/12/1 16:37, ChenXiaoSong 写道:
> We can return -EINVAL only when executing ksmbd.mountd.
>
> ```
> --- a/tools/config_parser.c
> +++ b/tools/config_parser.c
> @@ -538,9 +538,11 @@ static int process_global_conf_kv(GHashTable *kv)
> global_conf.request_wq_mode = KSMBD_WQ_PERCPU;
> else if (!g_ascii_strcasecmp(v, "unbound"))
> global_conf.request_wq_mode = KSMBD_WQ_UNBOUND;
> - else {
> + else if (TOOL_IS_MOUNTD) {
> pr_err("Invalid server request workqueue
> `%s'\n", v);
> return -EINVAL;
> + } else {
> + pr_info("Ignoring invalid server request
> workqueue `%s'\n", v);
> }
> }
> ```
>
> On 12/1/26 15:59, ChenXiaoSong wrote:
>> An invalid value for "server request workqueue" in ksmbd.conf will
>> also affect the execution of ksmbd.adduser.
>>
>> ksmbd.conf:
>> ```
>> [global]
>> server request workqueue = invalid_value
>> ```
>>
>> ```
>> ksmbd.adduser --add new_user
>> [ksmbd.adduser/5978]: ERROR: Invalid server request workqueue
>> `invalid_value'
>> ```
prev parent reply other threads:[~2026-12-01 10:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 5:54 [PATCH] ksmbd-tools: add the "server request workqueue" option Huiwen He
2026-12-01 7:59 ` ChenXiaoSong
2026-12-01 8:37 ` ChenXiaoSong
2026-12-01 10:36 ` hehuiwen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eea5ad82-ea1d-4a2e-b415-421f800f0032@linux.dev \
--to=huiwen.he@linux.dev \
--cc=chenxiaosong@chenxiaosong.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=stefan.chulski@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox