From: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
To: linkinjeon@kernel.org, tom@talpey.com, senozhatsky@chromium.org,
chenxiaosong@chenxiaosong.com
Cc: linux-cifs@vger.kernel.org, ChenXiaoSong <chenxiaosong@kylinos.cn>
Subject: [PATCH 00/12] smb/server: change notify support
Date: Sat, 26 Sep 2026 09:05:06 +0000 [thread overview]
Message-ID: <20260926090518.78547-1-chenxiaosong@chenxiaosong.com> (raw)
From: ChenXiaoSong <chenxiaosong@kylinos.cn>
rfc v1 -> v1:
- Patch #02: STATUS_INVALID_PARAMETER for CHANGE_NOTIFY on non-directory opens.
- Patch #04: Do not reject a CompletionFilter if no mapped bits remain, keep the request pending.
- Patch #04: Do not merge later CHANGE_NOTIFY filters into the existing watch.
- Patch #04: Add a mapping for `FILE_NOTIFY_CHANGE_SIZE` in `ksmbd_notify_mapping`.
- Patch #11: Give queued events to the oldest pending waiter first.
- Patch #11: Use the current request's `OutputBufferLength` instead of `notify->max_buffer_size`.
rfc v1: https://lore.kernel.org/linux-cifs/20260723031644.312866-1-chenxiaosong@chenxiaosong.com/
TODO: stream-related notify.
ChenXiaoSong (12):
smb/server: move change notify handling into notify.c
smb/server: add more validation for change notify requests
smb/server: add debug type for change notify
smb/server: support non-recursive directory change watches
smb/server: support recursive directory change watches
smb/server: keep notify watches on file handles
smb/server: save simple notify events
smb/server: save old names for rename notify events
smb/server: match rename notify events
smb/server: encode notify events
smb/server: send notify events to the client
smb/server: break directory leases before sending notify events
fs/smb/server/Kconfig | 1 +
fs/smb/server/Makefile | 3 +-
fs/smb/server/glob.h | 3 +-
fs/smb/server/notify.c | 1193 +++++++++++++++++++++++++++++++++++++
fs/smb/server/notify.h | 26 +
fs/smb/server/oplock.c | 40 ++
fs/smb/server/oplock.h | 1 +
fs/smb/server/server.c | 2 +-
fs/smb/server/smb2pdu.c | 112 +---
fs/smb/server/vfs_cache.c | 3 +
fs/smb/server/vfs_cache.h | 4 +
11 files changed, 1278 insertions(+), 110 deletions(-)
create mode 100644 fs/smb/server/notify.c
create mode 100644 fs/smb/server/notify.h
--
2.55.0
next reply other threads:[~2026-09-26 9:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-26 9:05 ChenXiaoSong [this message]
2026-09-26 9:05 ` [PATCH 01/12] smb/server: move change notify handling into notify.c ChenXiaoSong
2026-09-26 9:05 ` [PATCH 02/12] smb/server: add more validation for change notify requests ChenXiaoSong
2026-09-26 9:05 ` [PATCH 03/12] smb/server: add debug type for change notify ChenXiaoSong
2026-09-26 9:05 ` [PATCH 04/12] smb/server: support non-recursive directory change watches ChenXiaoSong
2026-09-27 10:51 ` Namjae Jeon
2026-09-28 0:38 ` ChenXiaoSong
2026-09-26 9:05 ` [PATCH 05/12] smb/server: support recursive " ChenXiaoSong
2026-09-26 9:05 ` [PATCH 06/12] smb/server: keep notify watches on file handles ChenXiaoSong
2026-09-26 9:05 ` [PATCH 07/12] smb/server: save simple notify events ChenXiaoSong
2026-09-27 10:31 ` Namjae Jeon
2026-09-28 1:27 ` ChenXiaoSong
2026-09-26 9:05 ` [PATCH 08/12] smb/server: save old names for rename " ChenXiaoSong
2026-09-26 9:05 ` [PATCH 09/12] smb/server: match " ChenXiaoSong
2026-09-26 9:05 ` [PATCH 10/12] smb/server: encode " ChenXiaoSong
2026-09-26 9:05 ` [PATCH 11/12] smb/server: send notify events to the client ChenXiaoSong
2026-09-26 9:05 ` [PATCH 12/12] smb/server: break directory leases before sending notify events ChenXiaoSong
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=20260926090518.78547-1-chenxiaosong@chenxiaosong.com \
--to=chenxiaosong@chenxiaosong.com \
--cc=chenxiaosong@kylinos.cn \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=senozhatsky@chromium.org \
--cc=tom@talpey.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