DM-Devel Archive mirror
 help / color / mirror / Atom feed
From: Matthew Sakai <msakai@redhat.com>
To: dm-devel@lists.linux.dev
Cc: Matthew Sakai <msakai@redhat.com>
Subject: [PATCH 00/13] dm vdo: clean up and simplify thread utilities
Date: Thu, 29 Feb 2024 22:52:52 -0500	[thread overview]
Message-ID: <cover.1709264538.git.msakai@redhat.com> (raw)

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

-- 
2.42.0


             reply	other threads:[~2024-03-01  3:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01  3:52 Matthew Sakai [this message]
2024-03-01  3:52 ` [PATCH 01/13] dm vdo: make uds_*_semaphore interface private to uds-threads.c Matthew Sakai
2024-03-01  3:52 ` [PATCH 02/13] dm vdo uds-threads: eliminate uds_*_semaphore interfaces Matthew Sakai
2024-03-01  3:52 ` [PATCH 03/13] dm vdo uds-threads: push 'barrier' down to sparse-cache Matthew Sakai
2024-03-01  3:52 ` [PATCH 04/13] dm vdo indexer sparse-cache: cleanup threads_barrier code Matthew Sakai
2024-03-01  3:52 ` [PATCH 05/13] dm vdo: rename uds-threads.[ch] to thread-utils.[ch] Matthew Sakai
2024-03-01  3:52 ` [PATCH 06/13] dm vdo indexer: rename uds.h to indexer.h Matthew Sakai
2024-03-01  3:52 ` [PATCH 07/13] dm vdo: fold thread-cond-var.c into thread-utils Matthew Sakai
2024-03-01  3:53 ` [PATCH 08/13] dm vdo thread-utils: push uds_*_cond interface down to indexer Matthew Sakai
2024-03-01  3:53 ` [PATCH 09/13] dm vdo thread-utils: remove all uds_*_mutex wrappers Matthew Sakai
2024-03-01  3:53 ` [PATCH 10/13] dm vdo thread-utils: further cleanup of thread functions Matthew Sakai
2024-03-01  3:53 ` [PATCH 11/13] dm vdo thread-utils: cleanup included headers Matthew Sakai
2024-03-01  3:53 ` [PATCH 12/13] dm vdo thread-registry: rename all methods to reflect vdo-only use Matthew Sakai
2024-03-01  3:53 ` [PATCH 13/13] dm vdo thread-device: " Matthew Sakai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1709264538.git.msakai@redhat.com \
    --to=msakai@redhat.com \
    --cc=dm-devel@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).