Re: [PATCH 2/3] fs: use memalloc_nofs API while shrinking superblock

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

 



On Wed 21-03-18 17:44:28, Goldwyn Rodrigues wrote:
> From: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>
> 
> The superblock shrinkers are responsible for pruning dcache and icache.
> which evicts the inode by calling into local filesystem code. Protect
> allocations under memalloc_nofs_save/restore().

This is just wrong. PF_MEMALLOC_NOFS implies GFP_NOFS. Have a look at
current_gfp_context. Shrinkers really do not and should not care about
it.
-- 
Michal Hocko
SUSE Labs




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux