mbox series

[bpf-next,v3,0/4] Support RENAME_EXCHANGE on bpffs

Message ID 20211028094724.59043-1-lmb@cloudflare.com (mailing list archive)
Headers show
Series Support RENAME_EXCHANGE on bpffs | expand

Message

Lorenz Bauer Oct. 28, 2021, 9:47 a.m. UTC
Add support for renameat2(RENAME_EXCHANGE) on bpffs. This is useful
for atomic upgrades of our sk_lookup control plane.

v3:
- Re-use shmem_exchange (Miklos)

v2:
- Test exchanging a map and a directory (Alexei)
- Use ASSERT macros (Andrii)

Lorenz Bauer (4):
  libfs: move shmem_exchange to simple_rename_exchange
  libfs: support RENAME_EXCHANGE in simple_rename()
  selftests: bpf: convert test_bpffs to ASSERT macros
  selftests: bpf: test RENAME_EXCHANGE and RENAME_NOREPLACE on bpffs

 fs/libfs.c                                    | 29 ++++++-
 include/linux/fs.h                            |  2 +
 mm/shmem.c                                    | 24 +-----
 .../selftests/bpf/prog_tests/test_bpffs.c     | 85 ++++++++++++++++---
 4 files changed, 105 insertions(+), 35 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 3, 2021, 3 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Thu, 28 Oct 2021 10:47:20 +0100 you wrote:
> Add support for renameat2(RENAME_EXCHANGE) on bpffs. This is useful
> for atomic upgrades of our sk_lookup control plane.
> 
> v3:
> - Re-use shmem_exchange (Miklos)
> 
> v2:
> - Test exchanging a map and a directory (Alexei)
> - Use ASSERT macros (Andrii)
> 
> [...]

Here is the summary with links:
  - [bpf-next,v3,1/4] libfs: move shmem_exchange to simple_rename_exchange
    https://git.kernel.org/bpf/bpf/c/6429e46304ac
  - [bpf-next,v3,2/4] libfs: support RENAME_EXCHANGE in simple_rename()
    https://git.kernel.org/bpf/bpf/c/3871cb8cf741
  - [bpf-next,v3,3/4] selftests: bpf: convert test_bpffs to ASSERT macros
    https://git.kernel.org/bpf/bpf/c/9fc23c22e574
  - [bpf-next,v3,4/4] selftests: bpf: test RENAME_EXCHANGE and RENAME_NOREPLACE on bpffs
    https://git.kernel.org/bpf/bpf/c/7e5ad817ec29

You are awesome, thank you!