Switch to single argument kvfree_rcu() API
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | ext4: Switch to kvfree_rcu() APIfs/ | +1 | 1 reply | |
| 2/9 | ext4: Replace ext4_kvfree_array_rcu() by kvfree_rcu() APIfs/ fs/ fs/ +1 more | +4 | 1 reply | |
| 3/9 | fs: nfs: sysfs: Switch to kvfree_rcu() APIfs/ | +3 | 0 replies | |
| 4/9 | drivers: Switch to kvfree_rcu() APIdrivers/ drivers/ drivers/ +14 more | +22 | 4 replies | |
| 5/9 | x86/mm: Switch to kvfree_rcu() APIarch/ | +2 | 3 replies | |
| 6/9 | net/tipc: Switch to kvfree_rcu() APInet/ | +1 | 0 replies | |
| 7/9 | net/core: Switch to kvfree_rcu() APInet/ | +1 | 0 replies | |
| 8/9 | module: Switch to kvfree_rcu() APIkernel/ | +1 | 4 replies | |
| 9/9 | tracing: Switch to kvfree_rcu() APIkernel/ kernel/ | +2 | 2 replies |
Reviews trailers per patch
3 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Steven Rostedt (VMware) | Lee Jones | Mike Marciniszyn |
|---|---|---|---|
| 1/9 | |||
| 2/9 | |||
| 3/9 | |||
| 4/9 | A-b | A-b | |
| 5/9 | A-b | ||
| 6/9 | |||
| 7/9 | |||
| 8/9 | |||
| 9/9 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/9] Switch to single argument kvfree_rcu() API
Hi!
This is an attempt to replace places in the Linux kernel for using single argument of kvfree_rcu() API. In short, a single argument API allows something like below:
<snip>
void *ptr = kvmalloc(some_bytes, GFP_KERNEL);
if (ptr)
kvfree_rcu(ptr);<snip>
i.e. to free a pointer after a grace period of object that does not have any rcu_head field inside its structure. Due to lacking of such mechanism users just do:
<snip>
synchronize_rcu();
kfree(p);<snip>
if they do not want to have an rcu_head element in their data. Thus this series replaces mentioned places to go with the single argument API.
It is based on the 5.16.0-rc2 also it can be applied on Paul's latest RCU "dev" branch.
Thanks!
Uladzislau Rezki (2):
ext4: Switch to kvfree_rcu() API
fs: nfs: sysfs: Switch to kvfree_rcu() API
Uladzislau Rezki (Sony) (7):
ext4: Replace ext4_kvfree_array_rcu() by kvfree_rcu() API
drivers: Switch to kvfree_rcu() API
x86/mm: Switch to kvfree_rcu() API
net/tipc: Switch to kvfree_rcu() API
net/core: Switch to kvfree_rcu() API
module: Switch to kvfree_rcu() API
tracing: Switch to kvfree_rcu() API
arch/x86/mm/mmio-mod.c | 6 ++-- drivers/block/drbd/drbd_nl.c | 9 ++---- drivers/block/drbd/drbd_receiver.c | 6 ++-- drivers/block/drbd/drbd_state.c | 3 +- drivers/block/rnbd/rnbd-srv.c | 3 +- drivers/crypto/nx/nx-common-pseries.c | 3 +- drivers/infiniband/hw/hfi1/sdma.c | 3 +- drivers/ipack/carriers/tpci200.c | 3 +- drivers/mfd/dln2.c | 6 ++-- drivers/misc/vmw_vmci/vmci_context.c | 6 ++-- drivers/misc/vmw_vmci/vmci_event.c | 3 +- .../net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 +- .../net/ethernet/mellanox/mlx5/core/en/qos.c | 3 +- .../ethernet/mellanox/mlx5/core/fpga/tls.c | 3 +- drivers/net/ethernet/mellanox/mlxsw/core.c | 3 +- drivers/scsi/device_handler/scsi_dh_alua.c | 3 +- drivers/scsi/device_handler/scsi_dh_rdac.c | 3 +- drivers/staging/fwserial/fwserial.c | 3 +- fs/ext4/ext4.h | 1 - fs/ext4/mballoc.c | 2 +- fs/ext4/resize.c | 31 ++----------------- fs/ext4/super.c | 5 ++- fs/nfs/sysfs.c | 7 ++--- kernel/module.c | 3 +- kernel/trace/trace_osnoise.c | 3 +- kernel/trace/trace_probe.c | 3 +- net/core/sysctl_net_core.c | 3 +- net/tipc/crypto.c | 3 +- 28 files changed, 37 insertions(+), 96 deletions(-)
Signature · 1 line
2.30.2