backports.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] patches: update lib-bucket_locks.patch for v4.18-rc1
@ 2018-09-10  6:40 Winnie Chang
  0 siblings, 0 replies; only message in thread
From: Winnie Chang @ 2018-09-10  6:40 UTC (permalink / raw)
  To: backports; +Cc: Chi-Hsien.Lin

This patch do not apply to source code in v4.18-rc1 due to
commit ce91f6ee5b3b (mm: kvmalloc does not fallback to vmalloc for
incompatible gfp flags) so updating it.

Signed-off-by: Winnie Chang <winnie.chang@cypress.com>
---
 patches/lib-bucket_locks.patch | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/patches/lib-bucket_locks.patch b/patches/lib-bucket_locks.patch
index 15eeda1..c20c9ce 100644
--- a/patches/lib-bucket_locks.patch
+++ b/patches/lib-bucket_locks.patch
@@ -1,8 +1,6 @@
-diff --git a/compat/lib-bucket_locks.c b/compat/lib-bucket_locks.c
-index 266a97c5708b..405b52ca5708 100644
 --- a/compat/lib-bucket_locks.c
 +++ b/compat/lib-bucket_locks.c
-@@ -30,10 +30,24 @@ int alloc_bucket_spinlocks(spinlock_t **
+@@ -30,7 +30,21 @@
  	}
  
  	if (sizeof(spinlock_t) != 0) {
@@ -19,10 +17,7 @@ index 266a97c5708b..405b52ca5708 100644
 +			tlocks = kmalloc_array(size, sizeof(spinlock_t),
 +						   gfp);
 +#else
- 		if (gfpflags_allow_blocking(gfp))
- 			tlocks = kvmalloc(size * sizeof(spinlock_t), gfp);
- 		else
- 			tlocks = kmalloc_array(size, sizeof(spinlock_t), gfp);
+ 		tlocks = kvmalloc_array(size, sizeof(spinlock_t), gfp);
 +#endif
  		if (!tlocks)
  			return -ENOMEM;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-10 11:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10  6:40 [PATCH] patches: update lib-bucket_locks.patch for v4.18-rc1 Winnie Chang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).