Commit 3c5d61a
rcu/kvfree: Refactor kvfree_rcu_queue_batch()
Improve readability of kvfree_rcu_queue_batch() function
in away that, after a first batch queuing, the loop is break
and success value is returned to a caller.
There is no reason to loop and check batches further as all
outstanding objects have already been picked and attached to
a certain batch to complete an offloading.
Fixes: 2b55d6a ("rcu/kvfree: Add kvfree_rcu_barrier() API")
Suggested-by: Linus Torvalds <[email protected]>
Closes: https://lore.kernel.org/lkml/ZvWUt2oyXRsvJRNc@pc636/T/
Signed-off-by: Uladzislau Rezki (Sony) <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>1 parent 77ced98 commit 3c5d61a
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3607 | 3607 | | |
3608 | 3608 | | |
3609 | 3609 | | |
3610 | | - | |
3611 | | - | |
3612 | | - | |
3613 | | - | |
| 3610 | + | |
| 3611 | + | |
| 3612 | + | |
3614 | 3613 | | |
| 3614 | + | |
| 3615 | + | |
3615 | 3616 | | |
3616 | 3617 | | |
3617 | 3618 | | |
| |||
0 commit comments