mbox series

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

Message ID cover.1709264538.git.msakai@redhat.com (mailing list archive)
Headers show
Series dm vdo: clean up and simplify thread utilities | expand

Message

Matthew Sakai March 1, 2024, 3:52 a.m. UTC
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