> I don't think this patch solves the problem, it only fixes one minor symptom of it. > The actual problem here the reclaim hang in the nfs. > It means that any process, including kswapd, may go into nfs inode reclaim and stuck there. > > Even mount() itself has GFP_KERNEL allocations in its path, so it still might stuck there even with your patch. > > I think this should be handled on nfs/vfs level by making inode eviction during reclaim more asynchronous. I see this bigger problem here, but fixing every shrinker (who knows what else except nfs can hang here) looks like a too big work. My patch allows us to separate bad shrinker from others at least before global reclaim. Best regards, Tikhomirov Pavel.