Re: [PATCH 13/17] netvm: Set PF_MEMALLOC as appropriate during SKBprocessing

From: David Miller
Date: Thu May 17 2012 - 16:13:27 EST


From: Mel Gorman <mgorman@xxxxxxx>
Date: Thu, 17 May 2012 15:50:27 +0100

> 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.
>
> [a.p.zijlstra@xxxxxxxxx: Ideas taken from various patches]
> [jslaby@xxxxxxx: Lock imbalance fix]
> Signed-off-by: Mel Gorman <mgorman@xxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/