diff options
| author | chuguangqing <chuguangqing@inspur.com> | 2025-08-06 10:28:49 +0800 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2025-09-25 14:17:16 -0400 |
| commit | 1534f72dc2a11ded38b0e0268fbcc0ca24e9fd4a (patch) | |
| tree | cd34f7d91d86fbca9d8d821486fdb16d53ae18dc | |
| parent | Linux 6.17-rc4 (diff) | |
| download | linux-1534f72dc2a11ded38b0e0268fbcc0ca24e9fd4a.tar.gz linux-1534f72dc2a11ded38b0e0268fbcc0ca24e9fd4a.zip | |
fs: ext4: change GFP_KERNEL to GFP_NOFS to avoid deadlock
The parent function ext4_xattr_inode_lookup_create already uses GFP_NOFS for memory alloction, so the function ext4_xattr_inode_cache_find should use same gfp_flag.
Signed-off-by: chuguangqing <chuguangqing@inspur.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
| -rw-r--r-- | fs/ext4/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 5a6fe1513fd2..7743d81b2f21 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -1530,7 +1530,7 @@ ext4_xattr_inode_cache_find(struct inode *inode, const void *value, WARN_ON_ONCE(ext4_handle_valid(journal_current_handle()) && !(current->flags & PF_MEMALLOC_NOFS)); - ea_data = kvmalloc(value_len, GFP_KERNEL); + ea_data = kvmalloc(value_len, GFP_NOFS); if (!ea_data) { mb_cache_entry_put(ea_inode_cache, ce); return NULL; |
