summaryrefslogtreecommitdiff
path: root/patches/lib-rhashtable.patch
AgeCommit message (Collapse)Author
2018-09-19header: Add kvzalloc()Hauke Mehrtens
This adds the kvzalloc() function and allows it to remove the lib-rhashtable.patch patch. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [fix commit message kzalloc -> kvzalloc] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-03-21patches: refresh on kernel v4.16-rc3Hauke Mehrtens
No manual changes needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-02-23backport: include lib/bucket_locks.cLuca Coelho
The alloc/free_bucket_spinlocks() functions were moved to a new lib file, namely bucket_locks.c. Add an auto-backport for the bucket_locks.c file and move the patching of the code that moved from rhashtable to bucket_locks.c. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-21patches: refresh patches on v4.14-rc1Hauke Mehrtens
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08compat: avoid usage of kvzalloc() in rhashtable.cHauke Mehrtens
This reverts commit 12e8fd6fd3802 ("lib/rhashtable.c: use kvzalloc() in bucket_table_alloc() when possible") from upstream kernel. Kernel versions older that 4.12 do not have kvzalloc() try to avoid the usage of this. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-05-30patches: add patch for compat/lib-rhashtable.cArend Van Spriel
The file compat/lib-rhashtable.c is a copy from the backported kernel source lib/rhashtable.c. This patch reverts a recent change to that file, ie. commit 43ca5bc4f72e ("lib/rhashtable.c: simplify a strange allocation pattern"). It introduced the function gfpflags_allow_blocking() introduced in 4.4 kernel and kvmalloc() introduced in 4.12-rc1. Looking at those functions backporting them is complicated so instead add this patch that reverts the change for kernel prior to 4.12. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>