From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
To: Stefan Metzmacher <metze@samba.org>
Cc: Namjae Jeon <linkinjeon@kernel.org>,
Namjae Jeon <namjae.jeon@samsung.com>,
linux-cifsd-devel@lists.sourceforge.net,
Samba Technical <samba-technical@lists.samba.org>,
Linux API Mailing List <linux-api@vger.kernel.org>,
"linux-cifs@vger.kernel.org" <linux-cifs@vger.kernel.org>
Subject: Re: [Linux-cifsd-devel] RFC: ksmbd ABI for ksmbd-tools...
Date: Sat, 13 Feb 2021 11:06:00 +0900 [thread overview]
Message-ID: <YCc0CAR46wkOLYH8@jagdpanzerIV.localdomain> (raw)
In-Reply-To: <adf41e69-5915-06aa-6f8b-8ffc073fc8a7@samba.org>
Hi,
On (21/02/12 15:38), Stefan Metzmacher via Linux-cifsd-devel wrote:
> I haven't found the exact place, but ksmbd.mountd starts the kernel-part.
>
> ksmbd.mountd also acts as some kind of upcall, for the server part,
> that takes care of authentication and some basic DCERPC calls.
>
> I'm wondering why there are two separate ways to kill the running server,
> 'killall ksmbd.mountd' for the userspace part and
> 'ksmbd.control -s' (which is just a wrapper for
> 'echo -n "hard" > /sys/class/ksmbd-control/kill_server') to shutdown the server part.
>
> As it's not useful to run any of these two components on its own,
> so I'm wondering why there's no stronger relationship.
>
> As naive admin I'd assume that the kernel part would detect the exit of ksmbd.mountd
> and shutdown itself.
User-space daemon is just some sort of a database engine, kernel module
queries it when it needs something; otherwise kernel module works without
user-space part just fine and doesn't need it. The goal is that when
user-space crashes or gets restarted after update (critical fix) the server
doesn't panic and doesn't kill itself.
E.g. - when you restart mysql you don't expect httpd to kill itself and
to terminate all existing TCP connections.
[..]
> Can we require that the userspace tool matches the kernel version for a while?
I think such a check exists (or at least it used to). Note that the only
time when version mismatch matters is when sizeof() or layout of the
structures that are used for RPC get updated, or new request commands or
status codes added. IOW, RPC version mismatch is the critical thing.
Otherwise there is no real reason (case by case) to forbid version
mismatch. If user-space gets a memory leak or a NULL pointer dereference
fix then there is no real reasons to force server restart or to force
server module version update, because the fix is completely internal to
the user-space daemon.
-ss
prev parent reply other threads:[~2021-02-13 2:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-12 14:38 RFC: ksmbd ABI for ksmbd-tools Stefan Metzmacher
2021-02-13 2:06 ` Sergey Senozhatsky [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=YCc0CAR46wkOLYH8@jagdpanzerIV.localdomain \
--to=sergey.senozhatsky@gmail.com \
--cc=linkinjeon@kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-cifsd-devel@lists.sourceforge.net \
--cc=metze@samba.org \
--cc=namjae.jeon@samsung.com \
--cc=samba-technical@lists.samba.org \
/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;
as well as URLs for NNTP newsgroup(s).