Skip to content

dm vdo: clean up and simplify thread utilities

Matthew Sakai dm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13dm vdo: make uds_*_semaphore interface private to uds-threads.cdrivers/md/dm-vdo/uds-threads.c drivers/md/dm-vdo/uds-threads.h+39 -370 replies
2/13dm vdo uds-threads: eliminate uds_*_semaphore interfacesdrivers/md/dm-vdo/uds-threads.c drivers/md/dm-vdo/uds-threads.h+15 -440 replies
3/13dm vdo uds-threads: push 'barrier' down to sparse-cachedrivers/md/dm-vdo/sparse-cache.c drivers/md/dm-vdo/uds-threads.c drivers/md/dm-vdo/uds-threads.h+68 -720 replies
4/13dm vdo indexer sparse-cache: cleanup threads_barrier codedrivers/md/dm-vdo/sparse-cache.c+19 -410 replies
5/13dm vdo: rename uds-threads.[ch] to thread-utils.[ch]drivers/md/dm-vdo/Makefile drivers/md/dm-vdo/config.c drivers/md/dm-vdo/funnel-requestqueue.c +11 more+15 -160 replies
6/13dm vdo indexer: rename uds.h to indexer.hdrivers/md/dm-vdo/chapter-index.c drivers/md/dm-vdo/config.h drivers/md/dm-vdo/data-vio.h +19 more+23 -240 replies
7/13dm vdo: fold thread-cond-var.c into thread-utilsdrivers/md/dm-vdo/Makefile drivers/md/dm-vdo/thread-cond-var.c drivers/md/dm-vdo/thread-utils.c +1 more+34 -520 replies
8/13dm vdo thread-utils: push uds_*_cond interface down to indexerdrivers/md/dm-vdo/index-session.c drivers/md/dm-vdo/index.c drivers/md/dm-vdo/indexer.h +3 more+40 -790 replies
9/13dm vdo thread-utils: remove all uds_*_mutex wrappersdrivers/md/dm-vdo/index-session.c drivers/md/dm-vdo/index.c drivers/md/dm-vdo/thread-utils.h +2 more+96 -1570 replies
10/13dm vdo thread-utils: further cleanup of thread functionsdrivers/md/dm-vdo/funnel-requestqueue.c drivers/md/dm-vdo/index.c drivers/md/dm-vdo/status-codes.c +3 more+15 -210 replies
11/13dm vdo thread-utils: cleanup included headersdrivers/md/dm-vdo/logger.c drivers/md/dm-vdo/thread-utils.c drivers/md/dm-vdo/thread-utils.h+3 -80 replies
12/13dm vdo thread-registry: rename all methods to reflect vdo-only usedrivers/md/dm-vdo/memory-alloc.c drivers/md/dm-vdo/thread-device.c drivers/md/dm-vdo/thread-registry.c +1 more+21 -210 replies
13/13dm vdo thread-device: rename all methods to reflect vdo-only usedrivers/md/dm-vdo/dm-vdo-target.c drivers/md/dm-vdo/logger.c drivers/md/dm-vdo/thread-device.c +1 more+27 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] dm vdo: clean up and simplify thread utilities

Rename uds-threads to thread-utils, and simplify thread and synchronization utilities. Move some utilities closer to their only users.

Mike Snitzer (13):
dm vdo: make uds_*_semaphore interface private to uds-threads.c dm vdo uds-threads: eliminate uds_*_semaphore interfaces dm vdo uds-threads: push 'barrier' down to sparse-cache dm vdo indexer sparse-cache: cleanup threads_barrier code dm vdo: rename uds-threads.[ch] to thread-utils.[ch]
dm vdo indexer: rename uds.h to indexer.h
dm vdo: fold thread-cond-var.c into thread-utils
dm vdo thread-utils: push uds_*_cond interface down to indexer dm vdo thread-utils: remove all uds_*_mutex wrappers
dm vdo thread-utils: further cleanup of thread functions dm vdo thread-utils: cleanup included headers
dm vdo thread-registry: rename all methods to reflect vdo-only use dm vdo thread-device: rename all methods to reflect vdo-only use

 drivers/md/dm-vdo/Makefile                    |   3 +-
 drivers/md/dm-vdo/chapter-index.c             |   2 +-
 drivers/md/dm-vdo/config.c                    |   2 +-
 drivers/md/dm-vdo/config.h                    |   2 +-
 drivers/md/dm-vdo/data-vio.h                  |   2 +-
 drivers/md/dm-vdo/dedupe.c                    |   2 +-
 drivers/md/dm-vdo/dedupe.h                    |   2 +-
 drivers/md/dm-vdo/delta-index.c               |   2 +-
 drivers/md/dm-vdo/dm-vdo-target.c             |  30 ++--
 drivers/md/dm-vdo/encodings.h                 |   2 +-
 drivers/md/dm-vdo/funnel-queue.c              |   1 -
 drivers/md/dm-vdo/funnel-requestqueue.c       |  10 +-
 drivers/md/dm-vdo/funnel-requestqueue.h       |   2 +-
 drivers/md/dm-vdo/geometry.c                  |   2 +-
 drivers/md/dm-vdo/geometry.h                  |   2 +-
 drivers/md/dm-vdo/hash-utils.h                |   2 +-
 drivers/md/dm-vdo/index-layout.h              |   2 +-
 drivers/md/dm-vdo/index-page-map.c            |   4 +-
 drivers/md/dm-vdo/index-session.c             | 138 ++++++++----------
 drivers/md/dm-vdo/index-session.h             |   4 +-
 drivers/md/dm-vdo/index.c                     |  54 +++----
 drivers/md/dm-vdo/{uds.h => indexer.h}        |  30 +++-
 drivers/md/dm-vdo/logger.c                    |   5 +-
 drivers/md/dm-vdo/memory-alloc.c              |  12 +-
 drivers/md/dm-vdo/sparse-cache.c              | 105 +++++++++----
 drivers/md/dm-vdo/sparse-cache.h              |   2 +-
 drivers/md/dm-vdo/status-codes.c              |   4 +-
 drivers/md/dm-vdo/thread-cond-var.c           |  46 ------
 drivers/md/dm-vdo/thread-device.c             |  18 +--
 drivers/md/dm-vdo/thread-device.h             |  14 +-
 drivers/md/dm-vdo/thread-registry.c           |   8 +-
 drivers/md/dm-vdo/thread-registry.h           |  14 +-
 .../dm-vdo/{uds-threads.c => thread-utils.c}  |  62 +-------
 drivers/md/dm-vdo/thread-utils.h              |  22 +++
 drivers/md/dm-vdo/uds-sysfs.c                 |   2 +-
 drivers/md/dm-vdo/uds-threads.h               | 115 ---------------
 drivers/md/dm-vdo/vdo.h                       |   2 +-
 drivers/md/dm-vdo/volume-index.c              |  44 +++---
 drivers/md/dm-vdo/volume-index.h              |   4 +-
 drivers/md/dm-vdo/volume.c                    |  59 +++-----
 drivers/md/dm-vdo/volume.h                    |   4 +-
 41 files changed, 328 insertions(+), 514 deletions(-)
 rename drivers/md/dm-vdo/{uds.h => indexer.h} (95%)
 delete mode 100644 drivers/md/dm-vdo/thread-cond-var.c
 rename drivers/md/dm-vdo/{uds-threads.c => thread-utils.c} (70%)
 create mode 100644 drivers/md/dm-vdo/thread-utils.h
 delete mode 100644 drivers/md/dm-vdo/uds-threads.h
Signature · 1 line
2.42.0