Skip to content

nvdimm: Introduce guard() for nvdimm_bus_lock and clean up usages

Dave Jiang nvdimm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v11 patch 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvdimm: Introduce guard() for nvdimm_bus_lockdrivers/nvdimm/badrange.c drivers/nvdimm/btt_devs.c drivers/nvdimm/bus.c +11 more+194 -2512 replies
2/2nvdimm: Clean up __nd_ioctl() and remove gotosdrivers/nvdimm/bus.c+22 -432 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDan WilliamsJonathan Cameron
1/2A-b R-b
2/2R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] nvdimm: Introduce guard() for nvdimm_bus_lock and clean up usages

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

Signature · 1 line
2.51.0