commit | b4b9e3558508980fc0cd161a545ffb55a1f13ee9 | [log] [tgz] |
---|---|---|
author | Mel Gorman <[email protected]> | Tue Jul 31 16:44:26 2012 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Jul 31 18:42:46 2012 -0700 |
tree | abb2ab54f4b201b1cbdaf181ec16912c3dd889eb | |
parent | 0614002bb5f7411e61ffa0dfe5be1f2c84df3da3 [diff] |
netvm: set PF_MEMALLOC as appropriate during SKB processing In order to make sure pfmemalloc packets receive all memory needed to proceed, ensure processing of pfmemalloc SKBs happens under PF_MEMALLOC. This is limited to a subset of protocols that are expected to be used for writing to swap. Taps are not allowed to use PF_MEMALLOC as these are expected to communicate with userspace processes which could be paged out. [[email protected]: Ideas taken from various patches] [[email protected]: Lock imbalance fix] Signed-off-by: Mel Gorman <[email protected]> Acked-by: David S. Miller <[email protected]> Cc: Neil Brown <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mike Christie <[email protected]> Cc: Eric B Munson <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>