Searched hist:"6 eba82248ef47fd478f940a418429e3ec95cb3db" (Results 1 – 4 of 4) sorted by relevance
/linux/include/linux/ |
H A D | rhashtable.h | diff 6eba82248ef47fd478f940a418429e3ec95cb3db Thu Nov 13 13:45:46 CET 2014 Thomas Graf <tgraf@suug.ch> rhashtable: Drop gfp_flags arg in insert/remove functions
Reallocation is only required for shrinking and expanding and both rely on a mutex for synchronization and callers of rhashtable_init() are in non atomic context. Therefore, no reason to continue passing allocation hints through the API.
Instead, use GFP_KERNEL and add __GFP_NOWARN | __GFP_NORETRY to allow for silent fall back to vzalloc() without the OOM killer jumping in as pointed out by Eric Dumazet and Eric W. Biederman.
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/net/netfilter/ |
H A D | nft_hash.c | diff 6eba82248ef47fd478f940a418429e3ec95cb3db Thu Nov 13 13:45:46 CET 2014 Thomas Graf <tgraf@suug.ch> rhashtable: Drop gfp_flags arg in insert/remove functions
Reallocation is only required for shrinking and expanding and both rely on a mutex for synchronization and callers of rhashtable_init() are in non atomic context. Therefore, no reason to continue passing allocation hints through the API.
Instead, use GFP_KERNEL and add __GFP_NOWARN | __GFP_NORETRY to allow for silent fall back to vzalloc() without the OOM killer jumping in as pointed out by Eric Dumazet and Eric W. Biederman.
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/lib/ |
H A D | rhashtable.c | diff 6eba82248ef47fd478f940a418429e3ec95cb3db Thu Nov 13 13:45:46 CET 2014 Thomas Graf <tgraf@suug.ch> rhashtable: Drop gfp_flags arg in insert/remove functions
Reallocation is only required for shrinking and expanding and both rely on a mutex for synchronization and callers of rhashtable_init() are in non atomic context. Therefore, no reason to continue passing allocation hints through the API.
Instead, use GFP_KERNEL and add __GFP_NOWARN | __GFP_NORETRY to allow for silent fall back to vzalloc() without the OOM killer jumping in as pointed out by Eric Dumazet and Eric W. Biederman.
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/net/netlink/ |
H A D | af_netlink.c | diff 6eba82248ef47fd478f940a418429e3ec95cb3db Thu Nov 13 13:45:46 CET 2014 Thomas Graf <tgraf@suug.ch> rhashtable: Drop gfp_flags arg in insert/remove functions
Reallocation is only required for shrinking and expanding and both rely on a mutex for synchronization and callers of rhashtable_init() are in non atomic context. Therefore, no reason to continue passing allocation hints through the API.
Instead, use GFP_KERNEL and add __GFP_NOWARN | __GFP_NORETRY to allow for silent fall back to vzalloc() without the OOM killer jumping in as pointed out by Eric Dumazet and Eric W. Biederman.
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
|