]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: introduce sk_gfp_atomic() to allow addition of GFP flags depending on the indivi...
authorMel Gorman <mgorman@suse.de>
Sat, 21 Jul 2012 00:54:22 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:36 +0000 (13:02 +1000)
commitcd7e178c19f7478b55da5c1f77e214333cb16eb8
treec91b01dbeaed9edad86857cd68e87b0c13ac35ff
parent7a38142041904f61523324837378c9286a4fe738
net: introduce sk_gfp_atomic() to allow addition of GFP flags depending on the individual socket

Introduce sk_gfp_atomic(), this function allows to inject sock specific
flags to each sock related allocation.  It is only used on allocation
paths that may be required for writing pages back to network storage.

[davem@davemloft.net: Use sk_gfp_atomic only when necessary]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Neil Brown <neilb@suse.de>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: Eric B Munson <emunson@mgebm.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/net/sock.h
net/ipv4/tcp_output.c
net/ipv6/tcp_ipv6.c