Re: [PATCH net-next] rhashtable: Drop gfp_flags arg in insert/remove functions

2014-11-13 Thread David Miller
From: Thomas Graf Date: Thu, 13 Nov 2014 13:45:46 +0100 > 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

[PATCH net-next] rhashtable: Drop gfp_flags arg in insert/remove functions

2014-11-13 Thread Thomas Graf
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