]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: use GFP_KERNEL for DFS cache allocations
authorFredric Cover <fredric.cover.lkernel@gmail.com>
Tue, 7 Jul 2026 20:15:26 +0000 (13:15 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 8 Jul 2026 15:09:44 +0000 (10:09 -0500)
commit6d07e4f7144b636b112fbe177d32e1cf85e2558e
treec436ed36334c9ed566bafd99b875d11dd1b1b563
parent53b7c271f06be4dd5cfc8c6ef552a8355c891a7f
smb: client: use GFP_KERNEL for DFS cache allocations

In dfs_cache.c, the helper functions alloc_target(), setup_referral(),
and update_cache_entry_locked() currently utilize GFP_ATOMIC to
allocate memory.

However, all of these functions are executed in sleepable conditions.
Use GFP_KERNEL instead, to reduce the risk of allocation failure and
stop putting unnecessary pressure on emergency memory pools in
low-memory scenarios.

Signed-off-by: Fredric Cover <fredric.cover.lkernel@gmail.com>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dfs_cache.c