Remount patches v2
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/28 patches 0 repliesNew
- v2 posting 1/21 of 9 patches 1 replySuperseded
- v19 patches 5 repliesSuperseded
Patches in v2 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | smb: client: block non-reconfigurable option changes on remountfs/ | +252 | 0 replies | |
| 2/8 | smb: client: sync tcon-level options on remountfs/ | +34 | 0 replies | |
| 3/8 | smb: client: sync retrans on remountfs/ | +19 | 0 replies | |
| 4/8 | smb: client: sync echo_interval on remountfs/ | +9 | 0 replies | |
| 5/8 | smb: client: move struct tcon_list to cifsglob.hfs/ fs/ | +5 | 0 replies | |
| 6/8 | smb: client: allow nolease option to be reconfigured on remountfs/ fs/ fs/ +1 more | +69 | 0 replies | |
| 7/8 | smb: client: block cache=ro and cache=singleclient on remountfs/ | +9 | 0 replies | |
| 8/8 | smb: client: apply rasize on remountfs/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/8] Remount patches v2
From: Rajasi Mandal <[email protected]>
This series fixes several long-standing problems with how the SMB client handles mount options at remount time:
- Options that affect runtime behaviour were silently ignored on remount because smb3_reconfigure() only updated cifs_sb->ctx and never propagated the new values to the live tcon / TCP_Server_Info structures (retrans, echo_interval, the per-tcon options, rasize).
- Options that have no meaningful semantics on a live mount were accepted by the parser, leading to confusing behaviour where the user thinks the change took effect (vers, sec, multiuser, UNC, username, ...). These are now rejected with a clear error.
- Toggling 'lease' / 'nolease' on remount used to leave behind deferred file handles and cached directory entries that were obtained under the previous lease setting. This series closes deferred files and invalidates cached dirs across the superblock when transitioning to nolease.
- cache=ro and cache=singleclient are special-cased to be rejected on remount because changing them at runtime would be unsafe.
Patch 5 is a small refactor that moves struct tcon_list out of misc.c into cifsglob.h so it can be shared between the new invalidate_all_cached_dirs_sb() helper in cached_dir.c and the existing cifs_close_all_deferred_files_sb() in misc.c. Patch 6 then uses the shared struct.
Testing
=======
- Ran xfstests on the patch series.
- A targeted nolease/cached_dir stress test (lease<->nolease toggle cycles, parallel remounters, concurrent I/O, GET/PUT trace pairing, deadlock/starvation bounds, hung-task scan).
- A general remount test covering both reconfigurable and rejected option changes plus repeated mount/umount/remount cycles.
All runs clean, no WARN/BUG/UAF/hung-task in dmesg.
Rajasi Mandal (8):
smb: client: block non-reconfigurable option changes on remount
smb: client: sync tcon-level options on remount
smb: client: sync retrans on remount
smb: client: sync echo_interval on remount
smb: client: move struct tcon_list to cifsglob.h
smb: client: allow nolease option to be reconfigured on remount
smb: client: block cache=ro and cache=singleclient on remount
smb: client: apply rasize on remount
fs/smb/client/cached_dir.c | 44 +++++ fs/smb/client/cached_dir.h | 1 + fs/smb/client/cifsglob.h | 5 + fs/smb/client/fs_context.c | 355 ++++++++++++++++++++++++++++++++++++- fs/smb/client/misc.c | 5 - fs/smb/client/trace.h | 2 + 6 files changed, 403 insertions(+), 9 deletions(-)
Signature · 1 line
2.43.0