Linux CIFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 00/18] SWN: Decouple witness registrations and tcons
@ 2026-07-10  9:16 Samuel Cabrero
  2026-07-10  9:16 ` [PATCH 01/18] Revert "smb: client: resolve SWN tcon from live registrations" Samuel Cabrero
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: Samuel Cabrero @ 2026-07-10  9:16 UTC (permalink / raw)
  To: linux-cifs
  Cc: smfrench, pc, ronniesahlberg, sprasad, tom, bharathsm,
	henrique.carvalho, ematsumiya, Samuel Cabrero

This patches removes the cached tcon pointers from the witness
registrations.

First patch in the serie reverts the current approach based on snapshots
that fixes a race while processing a received notification. This
patchset implements a different approach based on reference counting and
fixes other races that could occur with concurrent
register/unregister/notification processing.

The witness registration stores now all required information to issue
register/unregister DCERPC calls (like auth info and target address),
and when a notification is received it applies it to all matching
witness-enabled tcons.

Each witness registration has its own task to enforce the registration
in case the userspace daemon is started after mounting the share,
instead of overload the echo task for this purpose.

Samuel Cabrero (18):
  Revert "smb: client: resolve SWN tcon from live registrations"
  smb:client: Adjust witness notification request
  smb:client: Rename variable to match the rest of the code
  smb:client: Split idr remove and release functions
  smb:client: Add a specific task to refresh witness registrations
  smb:client: Store the tcon dstaddr in the witness registration
  smb:client: Fix printf format string
  smb:client: Save memory allocations
  smb:client: Use the correct return code
  smb:client: Improve tcon matching logic
  smb:client: Pass the tcon to cifs_swn_send_register_message
  smb:client: Pass the tcon to notification handlers
  smb:client: Introduce swn_notification struct
  smb:client: Cache auth info
  smb:client: Do not store the tcon reference, find a matching one
  smb:client: Simplify registration creation
  smb:client: Improve registration network and share names handling
  smb:client: Avoid witness re-register if the address did not change

 fs/smb/client/cifs_swn.c | 1179 ++++++++++++++++++++++----------------
 fs/smb/client/cifs_swn.h |    3 -
 fs/smb/client/connect.c  |    3 -
 fs/smb/client/trace.h    |    4 +-
 4 files changed, 682 insertions(+), 507 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2026-07-10 14:16 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10  9:16 [PATCH 00/18] SWN: Decouple witness registrations and tcons Samuel Cabrero
2026-07-10  9:16 ` [PATCH 01/18] Revert "smb: client: resolve SWN tcon from live registrations" Samuel Cabrero
2026-07-10  9:16 ` [PATCH 02/18] smb:client: Adjust witness notification request Samuel Cabrero
2026-07-10  9:16 ` [PATCH 03/18] smb:client: Rename variable to match the rest of the code Samuel Cabrero
2026-07-10  9:16 ` [PATCH 04/18] smb:client: Split idr remove and release functions Samuel Cabrero
2026-07-10  9:16 ` [PATCH 05/18] smb:client: Add a specific task to refresh witness registrations Samuel Cabrero
2026-07-10  9:16 ` [PATCH 06/18] smb:client: Store the tcon dstaddr in the witness registration Samuel Cabrero
2026-07-10  9:16 ` [PATCH 07/18] smb:client: Fix printf format string Samuel Cabrero
2026-07-10  9:16 ` [PATCH 08/18] smb:client: Save memory allocations Samuel Cabrero
2026-07-10  9:16 ` [PATCH 09/18] smb:client: Use the correct return code Samuel Cabrero
2026-07-10  9:16 ` [PATCH 10/18] smb:client: Improve tcon matching logic Samuel Cabrero
2026-07-10  9:16 ` [PATCH 11/18] smb:client: Pass the tcon to cifs_swn_send_register_message Samuel Cabrero
2026-07-10  9:16 ` [PATCH 12/18] smb:client: Pass the tcon to notification handlers Samuel Cabrero
2026-07-10  9:16 ` [PATCH 13/18] smb:client: Introduce swn_notification struct Samuel Cabrero
2026-07-10  9:16 ` [PATCH 14/18] smb:client: Cache auth info Samuel Cabrero
2026-07-10  9:16 ` [PATCH 15/18] smb:client: Do not store the tcon reference, find a matching one Samuel Cabrero
2026-07-10  9:16 ` [PATCH 16/18] smb:client: Simplify registration creation Samuel Cabrero
2026-07-10  9:16 ` [PATCH 17/18] smb:client: Improve registration network and share names handling Samuel Cabrero
2026-07-10  9:16 ` [PATCH 18/18] smb:client: Avoid witness re-register if the address did not change Samuel Cabrero
2026-07-10 14:16 ` [PATCH 00/18] SWN: Decouple witness registrations and tcons Enzo Matsumiya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox