[PATCH 03/16] preempt: Make preempt count unconditional

2020-10-29 Thread Uladzislau Rezki (Sony)
essential functionality of the kernel consistent accross the various preemption models. Enable CONFIG_PREEMPT_COUNT unconditionally. Follow up changes will remove the #ifdeffery and remove the config option at the end. Signed-off-by: Thomas Gleixner Signed-off-by: Uladzislau Rezki (Sony) -

[PATCH 11/16] xtensa: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org Signed-off-by: Uladzislau Rezki (Sony) --- arch/xtensa

[PATCH 04/16] preempt: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
Segall Cc: Mel Gorman Cc: Daniel Bristot de Oliveira Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/preempt.h | 37 - 1 file changed, 4 insertions(+), 33 deletions(-) diff --git a/include/linux/preempt.h b/include/linux/preempt.h index 7d9c1c0e149c

[PATCH 14/16] preempt: Remove PREEMPT_COUNT from Kconfig

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner All conditionals and irritations are gone. Signed-off-by: Thomas Gleixner Signed-off-by: Uladzislau Rezki (Sony) --- kernel/Kconfig.preempt | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt index 3f4712ff073b

[PATCH 13/16] rcutorture: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
han Cc: r...@vger.kernel.org Cc: linux-kselft...@vger.kernel.org Signed-off-by: Uladzislau Rezki (Sony) --- tools/testing/selftests/rcutorture/configs/rcu/SRCU-t| 1 - tools/testing/selftests/rcutorture/configs/rcu/SRCU-u| 1 - tools/testing/selftests/rcutorture/configs/rcu/TINY01

[PATCH 05/16] lockdep: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
-by: Uladzislau Rezki (Sony) --- include/linux/lockdep.h | 6 ++ lib/Kconfig.debug | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index f5594879175a..d05db575f60f 100644 --- a/include/linux/lockdep.h +++ b/include

[PATCH 06/16] mm/pagemap: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Andrew Morton Cc: linux...@kvack.org Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/pagemap.h | 4 +--- 1 file

[PATCH 1/2] mm/vmalloc: use free_vm_area() if an allocation fails

2020-11-16 Thread Uladzislau Rezki (Sony)
e same, to perform a cleanup. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index d7075ad340aa..b08b06a8cc2a 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2479,8 +2479,7 @@ s

[PATCH 2/2] mm/vmalloc: rework the drain logic

2020-11-16 Thread Uladzislau Rezki (Sony)
presents a free space is faster because of (a). As a result the lock contention is also reduced. Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/vmalloc.h | 8 ++-- mm/vmalloc.c| 90 +++-- 2 files changed, 53 insertions(+

[PATCH 1/1] rcu/tree: Drop the lock before entering to page allocator

2020-07-15 Thread Uladzislau Rezki (Sony)
access to its zones. In order to prevent such vialation that is in question we can drop the internal raw_spinlock_t before entering to the page allocaor. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 36 +++- 1 file changed, 19 insertions(+), 17

[PATCH v2 1/1] rcu/tree: Drop the lock before entering to page allocator

2020-07-27 Thread Uladzislau Rezki (Sony)
ned-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 21c2fa5bd8c3..2de112404121 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3287,6 +3287,8 @@ kvfree_call_rcu_add_p

[PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki (Sony)
Before triggering a BUG() it would be useful to understand how two areas overlap between each other. Print information about start/end addresses of both VAs and their addresses. For example if both are identical it could mean double free. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c

[PATCH v2 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki (Sony)
Before triggering a BUG() it would be useful to understand how two areas overlap between each other. Print information about start/end addresses of both VAs and their addresses. For example if both are identical it could mean double free. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c

[PATCH v3 1/1] mm/vmalloc.c: Remove BUG() from the find_va_links()

2020-07-11 Thread Uladzislau Rezki (Sony)
vert BUG() to WARN() macros; - add "vmalloc bug:" prefix to the message; - add recovery process if an overlap occurs; - add more comments. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 41 - 1 file changed, 32 insertio

[RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-09-18 Thread Uladzislau Rezki (Sony)
ut a higher rate of fails is also expected. Usage: __rcu_alloc_page_lockless(); Link: https://lore.kernel.org/lkml/20200814215206.gl3...@worktop.programming.kicks-ass.net/ Not-signed-off-by: Peter Zijlstra Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/gfp.h | 1 + mm/page_alloc.c

[PATCH 0/4] kvfree_rcu() and _LOCK_NESTING/_PREEMPT_RT

2020-09-18 Thread Uladzislau Rezki (Sony)
;lock-less" flag it is better to move lock-less access to the pcplist to the separate function. - To add a special worker thread that does prefetching of pages if a per-cpu page cache is depleted(what is absolutely normal). As usual, thank you for paying attention to it and your help!

[PATCH 4/4] rcu/tree: Use schedule_delayed_work() instead of WQ_HIGHPRI queue

2020-09-18 Thread Uladzislau Rezki (Sony)
the other hand, the lock-less way of obtaining a page has been introduced and directly injected to the k[v]free_rcu() path. Therefore it is not important anymore to use a high priority "wq" for the external job that used to fill a page cache ASAP when it was empty. Signed-off-by: Uladzisla

[PATCH 1/4] rcu/tree: Add a work to allocate pages from regular context

2020-09-18 Thread Uladzislau Rezki (Sony)
c) Memory overhead since we do not know how much pages should be preloaded. Above three concerns should be fixed by introducing a lock-free page allocation interface. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 91 +-- 1 file chang

[PATCH 3/4] rcu/tree: use __rcu_alloc_page_lockless() func.

2020-09-18 Thread Uladzislau Rezki (Sony)
plist" by new fresh pages. A number of pre-fetched elements can be controlled via sysfs attribute. Please see the /proc/sys/vm/percpu_pagelist_fraction. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/rcu/tree.c b/

[PATCH 1/1] mm/vmalloc: convert vmap_lazy_nr to atomic_long_t

2019-01-31 Thread Uladzislau Rezki (Sony)
vmap_lazy_nr variable has atomic_t type that is 4 bytes integer value on both 32 and 64 bit systems. lazy_max_pages() deals with "unsigned long" that is 8 bytes on 64 bit system, thus vmap_lazy_nr should be 8 bytes on 64 bit as well. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmal

[RFC v1] mm: add the preempt check into alloc_vmap_area()

2018-02-27 Thread Uladzislau Rezki (Sony)
During finding a suitable hole in the vmap_area_list there is an explicit rescheduling check for latency reduction. We do it, since there are workloads which are sensitive for long (more than 1 millisecond) preemption off scenario. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 57

[RFC PATCH v2] sched/fair: search a task from the tail of the queue

2017-09-13 Thread Uladzislau Rezki (Sony)
From: Uladzislau Rezki As a first step this patch makes cfs_tasks list as MRU one. It means, that when a next task is picked to run on physical CPU it is moved to the front of the list. Therefore, the cfs_tasks list is more or less sorted (except woken tasks) starting from recently given CPU

[RFC PATCH v2] sched/fair: search a task from the tail of the queue

2017-09-13 Thread Uladzislau Rezki (Sony)
tive opinion, it worth to sort cfs_task list and start pulling from the back of the list during load balance (+ active) or idle balance operations. It would be appreciated if there are any comments, proposals or ideas regarding this small investigation. Best Regards, Uladzislau Rezki Uladzislau Re

[RFC][PATCH]: sched/fair: search a task from the tail of the queue

2017-08-24 Thread Uladzislau Rezki (Sony)
/hackbench_40_groups_1000_samples_default_patched_i5-3320M.png Uladzislau Rezki (1): sched/fair: search a task from the tail of the queue kernel/sched/fair.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) -- 2.11.0

[RFC][PATCH]: sched/fair: search a task from the tail of the queue

2017-08-24 Thread Uladzislau Rezki (Sony)
From: Uladzislau Rezki When a task is enqueued back from a physical CPU to the running list it is placed in the beginning of the queue. Thus, the cfs_tasks list is more or less sorted (except woken tasks) starting from recently given CPU time tasks toward tasks with max wait time in a run-queue

[RFC v1] sched/fair: search a task from the tail of the queue

2017-08-24 Thread Uladzislau Rezki (Sony)
From: Uladzislau Rezki As a first step this patch makes cfs_tasks list as MRU one. It means, that when a next task is picked to run on physical CPU it is moved to the front of the list. Thefore, the cfs_tasks list is more or less sorted (except woken tasks) starting from recently given CPU time

[PATCH] rcu/kvfree: Fix data-race in __mod_timer / kvfree_call_rcu

2024-10-22 Thread Uladzislau Rezki (Sony)
r.appspotmail.com Link: https://lore.kernel.org/lkml/ZxZ68KmHDQYU0yfD@pc636/T/ Fixes: 8fc5494ad5fa ("rcu/kvfree: Move need_offload_krc() out of krcp->lock") Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-

[PATCH 2/2] rcuscale: Remove redundant WARN_ON_ONCE() splat

2024-10-25 Thread Uladzislau Rezki (Sony)
There are two places where WARN_ON_ONCE() is called two times in the error paths. One which is encapsulated into if() condition and another one, which is unnecessary, is placed in the brackets. Remove an extra WARN_ON_ONCE() splat which is in brackets. Signed-off-by: Uladzislau Rezki (Sony

[PATCH 1/2] rcuscale: Do a proper cleanup if kfree_scale_init() fails

2024-10-24 Thread Uladzislau Rezki (Sony)
instead of doing a proper unwinding. Fix it by jumping to "unwind" label instead of returning -1. Reported-by: Dan Carpenter Closes: https://lore.kernel.org/rcu/ZxfTrHuEGtgnOYWp@pc636/T/ Fixes: 084e04fff160 ("rcuscale: Add laziness and kfree tests") Signed-off-by: Uladzislau R

[PATCH v2 2/2] rcuscale: Remove redundant WARN_ON_ONCE() splat

2024-11-13 Thread Uladzislau Rezki (Sony)
-by: Uladzislau Rezki (Sony) --- kernel/rcu/rcuscale.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/rcu/rcuscale.c b/kernel/rcu/rcuscale.c index d360fa44b234..0f3059b1b80d 100644 --- a/kernel/rcu/rcuscale.c +++ b/kernel/rcu/rcuscale.c @@ -889,14 +889,12 @@ kfree_scale_init(void

[PATCH v2 1/2] rcuscale: Do a proper cleanup if kfree_scale_init() fails

2024-11-13 Thread Uladzislau Rezki (Sony)
instead of doing a proper unwinding. Fix it by jumping to "unwind" label instead of returning -1. Reviewed-by: Paul E. McKenney Reported-by: Dan Carpenter Closes: https://lore.kernel.org/rcu/ZxfTrHuEGtgnOYWp@pc636/T/ Fixes: 084e04fff160 ("rcuscale: Add laziness and kfree t

[PATCH] rcu/kvfree: Refactor kvfree_rcu_queue_batch()

2024-09-30 Thread Uladzislau Rezki (Sony)
to complete an offloading. Link: https://lore.kernel.org/lkml/ZvWUt2oyXRsvJRNc@pc636/T/ Suggested-by: Linus Torvalds Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c

[RFC v1 5/5] mm/slab: Move kvfree_rcu() into SLAB

2024-12-10 Thread Uladzislau Rezki (Sony)
kernel/rcu/tree.c file; - Remove a temporary solution to handle freeing ptrs. after GP; - Remove "__maybe_unused" from the slab_common.c file; - Do not export main functionality for CONFIG_TINY_RCU case. Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/slab.h | 1 + i

[RFC v1 3/5] mm/slab: Copy internal functions of kvfree_rcu()

2024-12-10 Thread Uladzislau Rezki (Sony)
marked as "__maybe_unused" in the slab_common.c file. Signed-off-by: Uladzislau Rezki (Sony) --- mm/slab_common.c | 507 +++ 1 file changed, 507 insertions(+) diff --git a/mm/slab_common.c b/mm/slab_common.c index a249fdb0d92e..e7e1d5b5f

[RFC v1 4/5] mm/slab: Copy a function of kvfree_rcu() initialization

2024-12-10 Thread Uladzislau Rezki (Sony)
As a final step an initialization of kvfree_rcu() functionality is copied into slab_common.c from the tree.c file as well as shrinker related code. The function is temporary marked as "__maybe_unused" to eliminate a compiler warnings. Signed-off-by: Uladzislau Rezki (Sony) --- mm/sla

[RFC v1 2/5] mm/slab: Copy main data structures of kvfree_rcu()

2024-12-10 Thread Uladzislau Rezki (Sony)
This patch copies main data structures of kvfree_rcu() API from the kernel/rcu/tree.c into slab_common.c file. Later on, it will be removed from the tree.c. Signed-off-by: Uladzislau Rezki (Sony) --- mm/slab_common.c | 95 1 file changed, 95

[RFC v1 0/5] Move kvfree_rcu() into SLAB

2024-12-10 Thread Uladzislau Rezki (Sony)
Hello! This series is based on v6.12 kernel. It is an attempt to move the kvfree_rcu() into MM from the kernel/rcu/ place. I split the series into a few patches so it is easier to follow a migration process. As a result of this series, the main functionality is located under MM. Uladzislau

[RFC v1 1/5] rcu/kvfree: Temporary reclaim over call_rcu()

2024-12-10 Thread Uladzislau Rezki (Sony)
variant; - adds an rcu_barrier() call to the kvfree_rcu_barrier(). Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index b1f883fcd918..ab24229dfa73

[PATCH v2 3/5] rcu/kvfree: Adjust names passed into trace functions

2024-12-12 Thread Uladzislau Rezki (Sony)
ot; string as a first argument. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index b3853ae6e869..6ab21655c248 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3379,

[PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-12 Thread Uladzislau Rezki (Sony)
move. Uladzislau Rezki (Sony) (5): rcu/kvfree: Initialize kvfree_rcu() separately rcu/kvfree: Move some functions under CONFIG_TINY_RCU rcu/kvfree: Adjust names passed into trace functions rcu/kvfree: Adjust a shrinker name mm/slab: Move kvfree_rcu() into SLAB include/linux/slab.h | 1

[PATCH v2 5/5] mm/slab: Move kvfree_rcu() into SLAB

2024-12-12 Thread Uladzislau Rezki (Sony)
Move kvfree_rcu() functionality to the slab_common.c file. Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/rcupdate.h | 1 - include/linux/slab.h | 1 + kernel/rcu/tree.c| 879 -- mm/slab_common.c | 880

[PATCH v2 2/5] rcu/kvfree: Move some functions under CONFIG_TINY_RCU

2024-12-12 Thread Uladzislau Rezki (Sony)
. Therefore, those functions name will not conflict when a kernel is compiled for CONFIG_TINY_RCU flavor. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 90 +-- 1 file changed, 47 insertions(+), 43 deletions(-) diff --git a/kernel/rcu

[PATCH v2 4/5] rcu/kvfree: Adjust a shrinker name

2024-12-12 Thread Uladzislau Rezki (Sony)
Rename "rcu-kfree" to "slab-kvfree-rcu" since it goes to the slab_common.c file soon. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 6ab21655c248.

[PATCH v2 1/5] rcu/kvfree: Initialize kvfree_rcu() separately

2024-12-12 Thread Uladzislau Rezki (Sony)
Introduce a separate initialization of kvfree_rcu() functionality. For such purpose a kfree_rcu_batch_init() is renamed to a kvfree_rcu_init() and it is invoked from the main.c right after rcu_init() is done. Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/rcupdate.h | 1 + init/main.c

[PATCH 3/4] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-01-23 Thread Uladzislau Rezki (Sony)
to 1, because it is specifically for a normal synchronize_rcu() testing, also a newly added parameter which is "rcu_normal_wake_from_gp" is set to 1 also. That prevents interaction with other callbacks in a system. Signed-off-by: Uladzislau Rezki (Sony) --- tools/testing/selftests/rcutortu

[PATCH 1/4] rcutorture: Allow a negative value for nfakewriters

2025-01-23 Thread Uladzislau Rezki (Sony)
pus() during torture initialization. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/rcutorture.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index d26fb1d33ed9..6bc161e1e8ac 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcu

[PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-23 Thread Uladzislau Rezki (Sony)
This configuration specifies the maximum number of CPUs which is set to 8. The problem is that it can not be overwritten for something higher. Remove that configuration for TREE05, so it is possible to run the torture test on as many CPUs as many system has. Signed-off-by: Uladzislau Rezki (Sony

[PATCH 4/4] rcu: Use _full() API to debug synchronize_rcu()

2025-01-23 Thread Uladzislau Rezki (Sony)
Switch for using of get_state_synchronize_rcu_full() and poll_state_synchronize_rcu_full() pair for debug a normal synchronize_rcu() call. Just using "not" full APIs to identify if a grace period is passed or not might lead to a false kernel splat. Signed-off-by: Uladzislau R

[GIT PULL] RCU changes for v6.14

2025-01-17 Thread Uladzislau Rezki (Sony)
Hi Linus, Please pull the latest RCU git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux.git tags/rcu.release.v6.14 # HEAD: 4b5c2205526cc1579b840893b98eb7545220f7cf: Merge branches 'fixes.2024.12.14a', 'rcutorture.2024.12.14a', 'srcu.2024.12.14a' and 'torture-test.2024.12.1

[PATCH] tools/memory-model/Documentation: Fix SRCU section in explanation.txt

2025-04-22 Thread Uladzislau Rezki (Sony)
task that invoked srcu_read_lock(). Signed-off-by: Uladzislau Rezki (Sony) --- tools/memory-model/Documentation/explanation.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/memory-model/Documentation/explanation.txt b/tools/memory-model/Documentation/explanation.txt

[PATCH v1 1/2] kunit, slub: Add test_kfree_rcu_wq_destroy use case

2025-02-28 Thread Uladzislau Rezki (Sony)
warning, it is passed. Reviewed-by: Keith Busch Co-developed-by: Vlastimil Babka Signed-off-by: Uladzislau Rezki (Sony) --- lib/slub_kunit.c | 59 1 file changed, 59 insertions(+) diff --git a/lib/slub_kunit.c b/lib/slub_kunit.c index f11691315c2f

[PATCH v1 2/2] mm/slab/kvfree_rcu: Switch to WQ_MEM_RECLAIM wq

2025-02-28 Thread Uladzislau Rezki (Sony)
type of wq because it is designed for this purpose. Cc: Cc: Greg Kroah-Hartman Cc: Keith Busch Closes: https://www.spinics.net/lists/kernel/msg5563270.html Fixes: 6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from kmem_cache_destroy()"), Reported-by: Keith Busch Signed-off-by: Ul

[PATCH v3 2/3] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-02-25 Thread Uladzislau Rezki (Sony)
to 1, because it is specifically for a normal synchronize_rcu() testing, also a newly added parameter which is "rcu_normal_wake_from_gp" is set to 1 also. That prevents interaction with other callbacks in a system. Reviewed-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony)

[PATCH v3 1/3] rcutorture: Allow a negative value for nfakewriters

2025-02-25 Thread Uladzislau Rezki (Sony)
pus() during torture initialization. Reviewed-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/rcutorture.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index d98b3bd6d91f..f3762

[PATCH v2 3/3] rcu: Use _full() API to debug synchronize_rcu()

2025-02-24 Thread Uladzislau Rezki (Sony)
l.org/lkml/Z5ikQeVmVdsWQrdD@pc636/T/ Fixes: 988f569ae041 ("rcu: Reduce synchronize_rcu() latency") Reported-by: cheung wall Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/rcupdate_wait.h | 4 kernel/rcu/tree.c | 8 +++- 2 files changed, 7 insertions(+), 5 deleti

[PATCH v2 1/3] rcutorture: Allow a negative value for nfakewriters

2025-02-24 Thread Uladzislau Rezki (Sony)
pus() during torture initialization. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/rcutorture.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index d98b3bd6d91f..f376262532ce 100644 --- a/kernel/rc

[PATCH v2 2/3] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-02-24 Thread Uladzislau Rezki (Sony)
to 1, because it is specifically for a normal synchronize_rcu() testing, also a newly added parameter which is "rcu_normal_wake_from_gp" is set to 1 also. That prevents interaction with other callbacks in a system. Reviewed-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony)

[PATCH v3 3/3] rcu: Use _full() API to debug synchronize_rcu()

2025-02-25 Thread Uladzislau Rezki (Sony)
l.org/lkml/Z5ikQeVmVdsWQrdD@pc636/T/ Fixes: 988f569ae041 ("rcu: Reduce synchronize_rcu() latency") Reported-by: cheung wall Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/rcupdate_wait.h | 3 +++ kernel/rcu/tree.c | 8 +++- 2 files changed, 6 insertions(+), 5 deletions(-)

[PATCH v4 3/3] rcu: Use _full() API to debug synchronize_rcu()

2025-02-27 Thread Uladzislau Rezki (Sony)
full() and get_state_synchronize_rcu_full() APIs, which use separate variables for expedited and normal states. Link: https://lore.kernel.org/lkml/Z5ikQeVmVdsWQrdD@pc636/T/ Fixes: 988f569ae041 ("rcu: Reduce synchronize_rcu() latency") Reported-by: cheung wall Signed-off-by: Uladzislau Rezki (Sony)

[PATCH v4 1/3] rcutorture: Allow a negative value for nfakewriters

2025-02-27 Thread Uladzislau Rezki (Sony)
pus() during torture initialization. Reviewed-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/rcutorture.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index e01c0022c175..65095

[PATCH v4 2/3] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-02-27 Thread Uladzislau Rezki (Sony)
to 1, because it is specifically for a normal synchronize_rcu() testing, also a newly added parameter which is "rcu_normal_wake_from_gp" is set to 1 also. That prevents interaction with other callbacks in a system. Reviewed-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony)

[PATCH v2 1/2] rcu: Enable rcu_normal_wake_from_gp on small systems

2025-06-11 Thread Uladzislau Rezki (Sony)
: 33463 4 - 4 : 20669 5 - 5 : 2766 6 - 6 : 183 ... Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index e8a4b720d7d2

[PATCH v2 2/2] Documentation/kernel-parameters: Update rcu_normal_wake_from_gp doc

2025-06-11 Thread Uladzislau Rezki (Sony)
Update the documentation about rcu_normal_wake_from_gp parameter. Signed-off-by: Uladzislau Rezki (Sony) --- Documentation/admin-guide/kernel-parameters.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation

[PATCH 2/3] rcu: Enable rcu_normal_wake_from_gp on small systems

2025-06-10 Thread Uladzislau Rezki (Sony)
- 4 : 20669 5 - 5 : 2766 6 - 6 : 183 ... Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 14d4499c6fc3..c0e0b38a08dc 100644 --- a/kernel/rcu

[PATCH 1/3] rcu: Return early if callback is not specified

2025-06-10 Thread Uladzislau Rezki (Sony)
to help identify a faulty caller. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index e8a4b720d7d2..14d4499c6fc3 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3072,6 +3072,10

[PATCH 3/3] Documentation/kernel-parameters: Update rcu_normal_wake_from_gp doc

2025-06-10 Thread Uladzislau Rezki (Sony)
Update the documentation about rcu_normal_wake_from_gp parameter. Signed-off-by: Uladzislau Rezki (Sony) --- Documentation/admin-guide/kernel-parameters.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

[PATCH v3 1/2] rcu: Enable rcu_normal_wake_from_gp on small systems

2025-07-02 Thread Uladzislau Rezki (Sony)
: 33463 4 - 4 : 20669 5 - 5 : 2766 6 - 6 : 183 ... Reviewed-by: Joel Fernandes Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c

[PATCH v3 2/2] Documentation/kernel-parameters: Update rcu_normal_wake_from_gp doc

2025-07-02 Thread Uladzislau Rezki (Sony)
Update the documentation about rcu_normal_wake_from_gp parameter. Reviewed-by: Joel Fernandes Signed-off-by: Uladzislau Rezki (Sony) --- Documentation/admin-guide/kernel-parameters.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel

[tip:sched/core] sched/fair: Search a task from the tail of the queue

2017-10-10 Thread tip-bot for Uladzislau Rezki
Commit-ID: 93824900a2e242766f5fe6ae7697e3d7171aa234 Gitweb: https://git.kernel.org/tip/93824900a2e242766f5fe6ae7697e3d7171aa234 Author: Uladzislau Rezki AuthorDate: Wed, 13 Sep 2017 12:24:30 +0200 Committer: Ingo Molnar CommitDate: Tue, 10 Oct 2017 11:45:30 +0200 sched/fair: Search a

[tip: core/rcu] rcu: Eliminate the __kvfree_rcu() macro

2021-02-15 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 5ea5d1ed572cb5ac173674fe770252253d2d9e27 Gitweb: https://git.kernel.org/tip/5ea5d1ed572cb5ac173674fe770252253d2d9e27 Author:Uladzislau Rezki (Sony) AuthorDate:Fri, 20 Nov 2020 12:49:17 +01:00

[tip: core/rcu] rcu: Introduce kfree_rcu() single-argument macro

2021-02-15 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 5130b8fd06901c1b3a4bd0d0f5c5ea99b2b0a6f0 Gitweb: https://git.kernel.org/tip/5130b8fd06901c1b3a4bd0d0f5c5ea99b2b0a6f0 Author:Uladzislau Rezki (Sony) AuthorDate:Fri, 20 Nov 2020 12:49:16 +01:00

[tip: core/rcu] rcu-tasks: Add RCU-tasks self tests

2021-02-12 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: bfba7ed084f8ab0269a5a1d2f51b07865456c334 Gitweb: https://git.kernel.org/tip/bfba7ed084f8ab0269a5a1d2f51b07865456c334 Author:Uladzislau Rezki (Sony) AuthorDate:Wed, 09 Dec 2020 21:27:32 +01:00

[tip: core/rcu] rcu/tree: Move kfree_rcu_cpu locking/unlocking to separate functions

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 952371d6fc0bc360d1d5780f86bb355836117ca2 Gitweb: https://git.kernel.org/tip/952371d6fc0bc360d1d5780f86bb355836117ca2 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:50 +02:00

[tip: core/rcu] rcu/tiny: support vmalloc in tiny-RCU

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 64d1d06ccb1b7de245ccf781b91517f328bebd9f Gitweb: https://git.kernel.org/tip/64d1d06ccb1b7de245ccf781b91517f328bebd9f Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:54 +02:00

[tip: core/rcu] rcu/tree: cache specified number of objects

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 53c72b590b3a0afd6747d6f7957e6838003e90a4 Gitweb: https://git.kernel.org/tip/53c72b590b3a0afd6747d6f7957e6838003e90a4 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:52 +02:00

[tip: core/rcu] rcu: Rename *_kfree_callback/*_kfree_rcu_offset/kfree_call_*

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: c408b215f58f7156bb6bafb64c0263ee907033df Gitweb: https://git.kernel.org/tip/c408b215f58f7156bb6bafb64c0263ee907033df Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:55 +02:00

[tip: core/rcu] rcu/tree: Repeat the monitor if any free channel is busy

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 594aa5975b9b5cfe9edaec06170e43b8c0607377 Gitweb: https://git.kernel.org/tip/594aa5975b9b5cfe9edaec06170e43b8c0607377 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:47 +02:00

[tip: core/rcu] rcu: Introduce 2 arg kvfree_rcu() interface

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: ce4dce123fdcb5f209752d13f9f06926be65fc78 Gitweb: https://git.kernel.org/tip/ce4dce123fdcb5f209752d13f9f06926be65fc78 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:57 +02:00

[tip: core/rcu] mm/list_lru.c: Rename kvfree_rcu() to local variant

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: e0feed08ab41df0fedc38d35938891ef5715c1d3 Gitweb: https://git.kernel.org/tip/e0feed08ab41df0fedc38d35938891ef5715c1d3 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:56 +02:00

[tip: core/rcu] rcu/tree: Simplify KFREE_BULK_MAX_ENTR macro

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 3af84862817403d317dc33312e7a88d76e79401a Gitweb: https://git.kernel.org/tip/3af84862817403d317dc33312e7a88d76e79401a Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:49 +02:00

[tip: core/rcu] rcu/tree: Maintain separate array for vmalloc ptrs

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 5f3c8d620447d509e534962e23f7edfb85f4e533 Gitweb: https://git.kernel.org/tip/5f3c8d620447d509e534962e23f7edfb85f4e533 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:53 +02:00

[tip: core/rcu] lib/test_vmalloc.c: Add test cases for kvfree_rcu()

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: da4fc00abb97ce1269b0940abe86e25456e28424 Gitweb: https://git.kernel.org/tip/da4fc00abb97ce1269b0940abe86e25456e28424 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:48:00 +02:00

[tip: core/rcu] rcu: Introduce single argument kvfree_rcu() interface

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 1835f475e3518ade61e25a57572c78b953778656 Gitweb: https://git.kernel.org/tip/1835f475e3518ade61e25a57572c78b953778656 Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:59 +02:00

[tip: core/rcu] rcu: Support reclaim for head-less object

2020-07-31 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 3042f83f19bec2e0cd356f72b39e4d816e8cd5ff Gitweb: https://git.kernel.org/tip/3042f83f19bec2e0cd356f72b39e4d816e8cd5ff Author:Uladzislau Rezki (Sony) AuthorDate:Mon, 25 May 2020 23:47:58 +02:00

[tip: core/rcu] rcuscale: Add kfree_rcu() single-argument scale test

2021-04-11 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 686fe1bf6bcce3ce9fc03c9d9035c643c320ca46 Gitweb: https://git.kernel.org/tip/686fe1bf6bcce3ce9fc03c9d9035c643c320ca46 Author:Uladzislau Rezki (Sony) AuthorDate:Wed, 17 Feb 2021 19:51:10 +01:00

[tip: core/rcu] kvfree_rcu: Use same set of GFP flags as does single-argument

2021-04-11 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: ee6ddf58475cce8a3d3697614679cd8cb4a6f583 Gitweb: https://git.kernel.org/tip/ee6ddf58475cce8a3d3697614679cd8cb4a6f583 Author:Uladzislau Rezki (Sony) AuthorDate:Fri, 29 Jan 2021 21:05:05 +01:00

[tip: core/rcu] kvfree_rcu: Replace __GFP_RETRY_MAYFAIL by __GFP_NORETRY

2021-04-11 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 3e7ce7a187fc6aaa9fda1310a2b8da8770342ff7 Gitweb: https://git.kernel.org/tip/3e7ce7a187fc6aaa9fda1310a2b8da8770342ff7 Author:Uladzislau Rezki (Sony) AuthorDate:Fri, 29 Jan 2021 17:16:03 +01:00

[tip: core/rcu] kvfree_rcu: Directly allocate page for single-argument case

2021-04-11 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 148e3731d124079a036b3acf780f3d35c1b9c0aa Gitweb: https://git.kernel.org/tip/148e3731d124079a036b3acf780f3d35c1b9c0aa Author:Uladzislau Rezki (Sony) AuthorDate:Wed, 20 Jan 2021 17:21:46 +01:00

[tip: core/rcu] rcu/tree: Defer kvfree_rcu() allocation to a clean context

2020-12-13 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 56292e8609e39537297a7468dda4d87b9bd81d6a Gitweb: https://git.kernel.org/tip/56292e8609e39537297a7468dda4d87b9bd81d6a Author:Uladzislau Rezki (Sony) AuthorDate:Thu, 29 Oct 2020 17:50:04 +01:00

[tip: core/rcu] rcu/tree: Allocate a page when caller is preemptible

2020-10-09 Thread tip-bot2 for Uladzislau Rezki (Sony)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 16a6320addfc4692a79aa452eefd40460fff4959 Gitweb: https://git.kernel.org/tip/16a6320addfc4692a79aa452eefd40460fff4959 Author:Uladzislau Rezki (Sony) AuthorDate:Tue, 22 Sep 2020 21:06:22 +02:00

<    2   3   4   5   6   7