Skip to content

IB/hfi1: Fix race conditions and memory leaks

Dennis Dalessandro linux-rdma 1 version Applied

Status from this message: Applied to for-next, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3IB/hfi1: Re-order IRQ cleanup to address driver cleanup racedrivers/infiniband/hw/hfi1/chip.c drivers/infiniband/hw/hfi1/hfi.h drivers/infiniband/hw/hfi1/init.c+16 -70 replies
2/3IB/hfi1: Fix for early release of sdma contextdrivers/infiniband/hw/hfi1/init.c drivers/infiniband/hw/hfi1/sdma.c drivers/infiniband/hw/hfi1/sdma.h+9 -60 replies
3/3IB/hfi1: Fix for potential refcount leak in hfi1_open_file()drivers/infiniband/hw/hfi1/file_ops.c+1 -30 replies

Reviews trailers per patch

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

PatchAlex EstrinPatel Jay PMike MarciniszynMichael J Ruhl
1/3R-b R-b R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH for-next 0/3] IB/hfi1: Fix race conditions and memory leaks

Hi Jason and Doug,

Here are some fixes for race conditions and memory leaks including the fix for the interrupt race [1].

This is a resubmit of my previous patch set [2] broken up into smaller logically grouped patch sets.

As always my GitHub had these in-tree for context:
https://github.com/ddalessa/kernel/tree/for-4.16

[1] https://marc.info/?l=linux-rdma&m=151394843919393&w=2

[2] https://www.spinics.net/lists/linux-rdma/msg60011.html

---

Alex Estrin (2):
IB/hfi1: Fix for early release of sdma context IB/hfi1: Fix for potential refcount leak in hfi1_open_file()

Michael J. Ruhl (1):
IB/hfi1: Re-order IRQ cleanup to address driver cleanup race

 drivers/infiniband/hw/hfi1/chip.c     |   18 ++++++++++++------
 drivers/infiniband/hw/hfi1/file_ops.c |    4 +---
 drivers/infiniband/hw/hfi1/hfi.h      |    1 +
 drivers/infiniband/hw/hfi1/init.c     |    5 ++++-
 drivers/infiniband/hw/hfi1/sdma.c     |   13 +++++++------
 drivers/infiniband/hw/hfi1/sdma.h     |    1 +
 6 files changed, 26 insertions(+), 16 deletions(-)

--
-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html