Skip to content

kdbus: name registry cleanup patches

Daniel Mack lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kdbus: restructure name-registry to follow dbus-specipc/kdbus/connection.c ipc/kdbus/connection.h ipc/kdbus/metadata.c +2 more+496 -3910 replies
2/4kdbus: inform caller about exact updates on NAME_ACQUIREinclude/uapi/linux/kdbus.h ipc/kdbus/names.c+32 -100 replies
3/4kdbus: never return <0 from ioctls if we changed stateipc/kdbus/names.c tools/testing/selftests/kdbus/test-chat.c tools/testing/selftests/kdbus/test-names.c+4 -90 replies
4/4kdbus: selftests: add more name registry teststools/testing/selftests/kdbus/kdbus-test.c tools/testing/selftests/kdbus/kdbus-test.h tools/testing/selftests/kdbus/test-names.c+112 -280 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDaniel Mack
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] kdbus: name registry cleanup patches

Hi Greg,

Here are some patches for kdbus-next David and I prepared:

* The first one cleans up the name registry code and brings the name queuing logic in sync with what the DBus spec requires. We were off in some small details concerning flags updates of already queued names.

* The second one adds two more return flags in the name queuing logic, so userspace has better ways of knowing what effect a name acquisition call had.

* Number three is a small cleanup that makes sure we never return negative return codes from ioctls if we modified any internal state. This is a rule all other command dispatchers follow as well.

* The last one adds more selftests for the name registry, covering the newly added flags.

None of these patches is critical, and everything has been running well on our machines for a while.

Thanks,
Daniel

Daniel Mack (1):
kdbus: selftests: add more name registry tests

David Herrmann (3):
kdbus: restructure name-registry to follow dbus-spec
kdbus: inform caller about exact updates on NAME_ACQUIRE
kdbus: never return <0 from ioctls if we changed state

 include/uapi/linux/kdbus.h                 |   4 +
 ipc/kdbus/connection.c                     |  53 +-
 ipc/kdbus/connection.h                     |   9 +-
 ipc/kdbus/metadata.c                       |  21 +-
 ipc/kdbus/names.c                          | 762 ++++++++++++++++-------------
 ipc/kdbus/names.h                          |  55 ++-
 tools/testing/selftests/kdbus/kdbus-test.c |   6 +
 tools/testing/selftests/kdbus/kdbus-test.h |   1 +
 tools/testing/selftests/kdbus/test-chat.c  |   6 +-
 tools/testing/selftests/kdbus/test-names.c | 140 ++++--
 10 files changed, 633 insertions(+), 424 deletions(-)
Signature · 1 line
2.4.3