]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: change allocation requirements in DUP_CTX_STR macro
authorFredric Cover <fredric.cover.lkernel@gmail.com>
Wed, 13 May 2026 20:19:15 +0000 (13:19 -0700)
committerSteve French <stfrench@microsoft.com>
Thu, 21 May 2026 16:16:09 +0000 (11:16 -0500)
commitdcd4313f0987d69c4134c12bbe3a8cdf795f6c1e
treedcb93846e6f507044784ad347651a83a9e47883e
parentd1ebfce2c1d161186a82e77590bf7da2ea1bce91
smb: client: change allocation requirements in DUP_CTX_STR macro

Currently, the macro DUP_CTX_STR allocates new_ctx->field using
GFP_ATOMIC. DUP_CTX_STR is only used in smb3_fs_context_dup(), which
is never called in an atomic context. Using GFP_ATOMIC puts unnecessary
pressure on emergency memory pools.

Change GFP_ATOMIC to GFP_KERNEL.

Signed-off-by: Fredric Cover <fredric.cover.lkernel@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c