ksmbd: use __GFP_RETRY_MAYFAIL
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 22 Nov 2024 07:33:25 +0000 (16:33 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 26 Nov 2024 00:58:02 +0000 (18:58 -0600)
commit0066f623bce8f98b69b752ee03d46a5047c281b8
tree86583913e44e47b85f9670344f814523383538f0
parentd6eb09fb46707a060209f077abede8c0e2c21b73
ksmbd: use __GFP_RETRY_MAYFAIL

Prefer to report ENOMEM rather than incur the oom for allocations in
ksmbd. __GFP_NORETRY could not achieve that, It would fail the allocations
just too easily. __GFP_RETRY_MAYFAIL will keep retrying the allocation
until there is no more progress and fail the allocation instead go OOM
and let the caller to deal with it.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
24 files changed:
fs/smb/server/asn1.c
fs/smb/server/auth.c
fs/smb/server/connection.c
fs/smb/server/crypto_ctx.c
fs/smb/server/glob.h
fs/smb/server/ksmbd_work.c
fs/smb/server/mgmt/ksmbd_ida.c
fs/smb/server/mgmt/share_config.c
fs/smb/server/mgmt/tree_connect.c
fs/smb/server/mgmt/user_config.c
fs/smb/server/mgmt/user_session.c
fs/smb/server/misc.c
fs/smb/server/ndr.c
fs/smb/server/oplock.c
fs/smb/server/server.c
fs/smb/server/smb2pdu.c
fs/smb/server/smb_common.c
fs/smb/server/smbacl.c
fs/smb/server/transport_ipc.c
fs/smb/server/transport_rdma.c
fs/smb/server/transport_tcp.c
fs/smb/server/unicode.c
fs/smb/server/vfs.c
fs/smb/server/vfs_cache.c