public inbox for nvdimm@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH v2 0/2] nvdimm: Introduce guard() for nvdimm_bus_lock and clean up usages
@ 2025-09-23 17:40 Dave Jiang
  2025-09-23 17:40 ` [PATCH v2 1/2] nvdimm: Introduce guard() for nvdimm_bus_lock Dave Jiang
  2025-09-23 17:40 ` [PATCH v2 2/2] nvdimm: Clean up __nd_ioctl() and remove gotos Dave Jiang
  0 siblings, 2 replies; 7+ messages in thread
From: Dave Jiang @ 2025-09-23 17:40 UTC (permalink / raw)
  To: nvdimm
  Cc: ira.weiny, vishal.l.verma, dan.j.williams, jonathan.cameron,
	s.neeraj

The series introduces a guard() function to manage the nvdimm_bus_lock,
and convert code using nvdimm_bus_lock()/unlock() to use guard() instead.

v2
- Move __nd_ioctl() cleanup to a separate patch and remove all gotos. (Dan)
- Fix various changes from Jonathan's feedback

# <REPLACE>cover letter body:
# NOTE: nvdimm-guard/0000-cover-letter.patch will add diffstat and base-commit to this template

# Dave Jiang (2):
#       nvdimm: Introduce guard() for nvdimm_bus_lock
#       nvdimm: Clean up __nd_ioctl() and remove gotos
#
#  drivers/nvdimm/badrange.c       |   3 +-
#  drivers/nvdimm/btt_devs.c       |  24 +++-----
#  drivers/nvdimm/bus.c            |  71 ++++++++----------------
#  drivers/nvdimm/claim.c          |   7 +--
#  drivers/nvdimm/core.c           |  17 +++---
#  drivers/nvdimm/dax_devs.c       |  12 ++--
#  drivers/nvdimm/dimm.c           |   5 +-
#  drivers/nvdimm/dimm_devs.c      |  48 ++++++----------
#  drivers/nvdimm/namespace_devs.c | 117 +++++++++++++++++++--------------------
#  drivers/nvdimm/nd.h             |   3 +
#  drivers/nvdimm/pfn_devs.c       |  61 +++++++++------------
#  drivers/nvdimm/region.c         |  14 ++---
#  drivers/nvdimm/region_devs.c    | 118 +++++++++++++++++-----------------------
#  drivers/nvdimm/security.c       |  10 +---
#  14 files changed, 216 insertions(+), 294 deletions(-)
# </REPLACE>


Dave Jiang (2):
  nvdimm: Introduce guard() for nvdimm_bus_lock
  nvdimm: Clean up __nd_ioctl() and remove gotos

 drivers/nvdimm/badrange.c       |   3 +-
 drivers/nvdimm/btt_devs.c       |  24 +++----
 drivers/nvdimm/bus.c            |  71 +++++++------------
 drivers/nvdimm/claim.c          |   7 +-
 drivers/nvdimm/core.c           |  17 +++--
 drivers/nvdimm/dax_devs.c       |  12 ++--
 drivers/nvdimm/dimm.c           |   5 +-
 drivers/nvdimm/dimm_devs.c      |  48 +++++--------
 drivers/nvdimm/namespace_devs.c | 117 +++++++++++++++----------------
 drivers/nvdimm/nd.h             |   3 +
 drivers/nvdimm/pfn_devs.c       |  61 +++++++----------
 drivers/nvdimm/region.c         |  14 ++--
 drivers/nvdimm/region_devs.c    | 118 ++++++++++++++------------------
 drivers/nvdimm/security.c       |  10 +--
 14 files changed, 216 insertions(+), 294 deletions(-)


base-commit: 07e27ad16399afcd693be20211b0dfae63e0615f
-- 
2.51.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-29  9:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 17:40 [PATCH v2 0/2] nvdimm: Introduce guard() for nvdimm_bus_lock and clean up usages Dave Jiang
2025-09-23 17:40 ` [PATCH v2 1/2] nvdimm: Introduce guard() for nvdimm_bus_lock Dave Jiang
2025-09-23 18:32   ` dan.j.williams
2025-09-29  9:05   ` Jonathan Cameron
2025-09-23 17:40 ` [PATCH v2 2/2] nvdimm: Clean up __nd_ioctl() and remove gotos Dave Jiang
2025-09-23 18:32   ` dan.j.williams
2025-09-29  9:06   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox