Skip to content

Fix hfi1_ioctl locking

[email protected] linux-rdma 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 4 repliesIn review
  2. v14 of 8 patches 1 replySuperseded

Changes in v2 from the cover letter

Alter switch to just ignore set link state and default to return -ENOTTY Remove patch which introduced an intermediate bug and squash it in the final patch
Series is now 7 patches rather than 8

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7staging/rdma/hfi1: diag.c Correct code style issuesdrivers/staging/rdma/hfi1/diag.c+37 -444 replies
2/7staging/rdma/hfi1: Fix camel case variablesdrivers/staging/rdma/hfi1/diag.c+12 -120 replies
3/7staging/rdma/hfi1: Return early from hfi1_ioctl parameter errorsdrivers/staging/rdma/hfi1/diag.c+173 -1750 replies
4/7staging/rdma/hfi1: hfi1_ioctl remove setlink statedrivers/staging/rdma/hfi1/diag.c+0 -50 replies
5/7staging/rdma/hfi1: Further clean up hfi1_ioctl parameter checksdrivers/staging/rdma/hfi1/diag.c+13 -100 replies
6/7staging/rdma/hfi1: Reduce snoop locking scope in IOCTL handler.drivers/staging/rdma/hfi1/diag.c+6 -40 replies
7/7staging/rdma/hfi1: Return immediately on errordrivers/staging/rdma/hfi1/diag.c+24 -380 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchDennis DalessandroMike Marciniszyn
1/7R-b R-b
2/7
3/7
4/7
5/7
6/7R-b
7/7R-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/7] Fix hfi1_ioctl locking

From: Ira Weiny <[email protected]>

It was identified that hfi1_ioctl may sleep with a spin lock held.

This was identified publicly here:

http://www.spinics.net/lists/linux-rdma/msg29926.html

As well as by our internal development.

This series cleans up the code and parameter checks, as well as fixing the locking.

---
Changes from v1
Alter switch to just ignore set link state and default to return -ENOTTY Remove patch which introduced an intermediate bug and squash it in the final patch
Series is now 7 patches rather than 8

Dennis Dalessandro (2):
staging/rdma/hfi1: Reduce snoop locking scope in IOCTL handler. staging/rdma/hfi1: Return immediately on error

Ira Weiny (4):
staging/rdma/hfi1: Fix camel case variables staging/rdma/hfi1: Return early from hfi1_ioctl parameter errors staging/rdma/hfi1: hfi1_ioctl remove setlink state staging/rdma/hfi1: Further clean up hfi1_ioctl parameter checks

Jubin John (1):
staging/rdma/hfi1: diag.c Correct code style issues

 drivers/staging/rdma/hfi1/diag.c | 461 +++++++++++++++++++--------------------
 1 file changed, 219 insertions(+), 242 deletions(-)
Signature · 6 lines
1.8.2

--
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