linux/fs/smb/common
Stefan Metzmacher 7d07722255 smb: smbdirect: introduce SMBDIRECT_CHECK_STATUS_{WARN,DISCONNECT}()
[ Upstream commit 1adb2dab97 ]

These will be used in various places in order to assert
the current status mostly during the connect and negotiation
phase. It will replace the WARN_ON_ONCE(sc->status != ...)
calls, which are very useless in order to identify the
problem that happened.

As a start client and server will need to define their own
__SMBDIRECT_SOCKET_DISCONNECT(__sc) macro in order to use
SMBDIRECT_CHECK_STATUS_DISCONNECT().

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Paulo Alcantara <pc@manguebit.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: 425c32750b ("smb: server: relax WARN_ON_ONCE(SMBDIRECT_SOCKET_*) checks in recv_done() and smb_direct_cm_handler()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-12-18 14:03:28 +01:00
..
smbdirect smb: smbdirect: introduce SMBDIRECT_CHECK_STATUS_{WARN,DISCONNECT}() 2025-12-18 14:03:28 +01:00
cifs_md4.c fs: smb: common: add missing MODULE_DESCRIPTION() macros 2024-05-27 00:44:23 -05:00
cifsglob.h smb: move some duplicate definitions to common/cifsglob.h 2025-10-15 07:44:17 -05:00
Makefile smb: Use arc4 library instead of duplicate arc4 code 2025-09-29 21:21:23 -05:00
md4.h smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
smb2pdu.h cifs: Fix support for WSL-style symlinks 2025-04-08 18:38:03 -05:00
smb2status.h smb: add comment to STATUS_MCA_OCCURED 2024-09-15 10:42:44 -05:00
smbacl.h smb: common: change the data type of num_aces to le16 2025-03-02 22:50:54 -06:00
smbfsctl.h cifs: Treat unhandled directory name surrogate reparse points as mount directory nodes 2025-02-19 10:42:27 -06:00