Skip to content

Use scoped_guard to safely manage mutex locking

Erick Karanja linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: endpoint: Replace manual mutex handling with scoped_guard()drivers/pci/endpoint/functions/pci-epf-mhi.c+166 -1921 reply
2/2PCI: endpoint: Use scoped_guard for manual mutex lock/unlockdrivers/pci/endpoint/pci-epc-core.c+24 -291 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Use scoped_guard to safely manage mutex locking

This change replaces manual mutex locking/unlocking with scoped_guard to ensure mutexes are always released safely, even in the presence of early returns or errors. It simplifies control flow and eliminates the need for explicit goto-based cleanup blocks.

Erick Karanja (2):
PCI: endpoint: Replace manual mutex handling with scoped_guard()
PCI: endpoint: Use scoped_guard for manual mutex lock/unlock

 drivers/pci/endpoint/functions/pci-epf-mhi.c | 358 +++++++++----------
 drivers/pci/endpoint/pci-epc-core.c          |  53 ++-
 2 files changed, 190 insertions(+), 221 deletions(-)
Signature · 1 line
2.43.0