[PATCH 0/1] fs: ext4: use GFP_KERNEL to GFP_NOFS to avoid deadlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I noticed that in the ext4 file system code, some memory allocations use GFP_NOFS, while others still use GFP_KERNEL. The GFP_NOFS flag is used to prevent file system operations (such as writing back dirty pages) from being triggered during memory allocation, thereby avoiding circular waits when holding certain file system locks. I found functions where the parent function has already used the GFP_NOFS flag for memory allocation, but the child function still uses GFP_KERNEL for memory allocation. This will render the GFP_NOFS used by the parent function ineffective. For the identified functions, their memory allocations should be modified to use the same GFP_NOFS flag as the parent function.

chuguangqing (1):
  fs: ext4: change GFP_KERNEL to GFP_NOFS to avoid deadlock

 fs/ext4/xattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.43.5





[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux