linux/fs/smb
Christian Brauner d0ae35565f
smb: prevent TIF_NOTIFY_SIGNAL from interrupting
smb blocks every signal during some sends:

	sigfillset(&mask);
	sigprocmask(SIG_BLOCK, &mask, &oldmask);

An incomplete or partial send would cause the connection to become out
of sync. That in turn would cause the session to be torn down and
reconnected.

In commit 00be6f26a2 ("smb: client: transport: avoid reconnects
triggered by pending task work") smb hand-rolled its own solution. Have
it use the new no_notify_signal_save() critical section instead.

This stops io_uring from cancelling a send in flight but that's just
like it is today and it is bounded by sk_sndtimeo at around 15s.

Link: https://patch.msgid.link/20260824-work-tif_notify_signal-v2-4-6609e42b3157@kernel.org
Acked-by: Paulo Alcantara <pc@manguebit.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
2026-08-31 10:05:13 +02:00
..
client smb: prevent TIF_NOTIFY_SIGNAL from interrupting 2026-08-31 10:05:13 +02:00
common ksmbd: add SMB Direct RDMA encryption transform 2026-08-17 22:38:25 +09:00
server This contains a set of 142 SMB server updates focused on SMB2 command 2026-08-23 08:41:36 -07:00
smbdirect This contains a set of 142 SMB server updates focused on SMB2 command 2026-08-23 08:41:36 -07:00
Kconfig smb: smbdirect: move fs/smb/common/smbdirect/ to fs/smb/smbdirect/ 2026-04-22 19:00:41 -05:00
Makefile smb: smbdirect: move fs/smb/common/smbdirect/ to fs/smb/smbdirect/ 2026-04-22 19:00:41 -05:00