Skip to content

Improve the loop driver

Bart Van Assche linux-block stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13loop: Fix the code for recursion detectiondrivers/block/loop.c+19 -50 replies
2/13loop: Reorder checks in loop_validate_file()drivers/block/loop.c+3 -20 replies
3/13loop: Enable context analysisdrivers/block/Makefile drivers/block/loop.c+6 -00 replies
4/13loop: Assign a unique lockdep key to each lo_mutex instancedrivers/block/loop.c+5 -10 replies
5/13loop: Add more __must_hold() annotationsdrivers/block/loop.c+17 -30 replies
6/13loop: Protect all lo_backing_file accesses with lo->lo_mutexdrivers/block/loop.c+27 -180 replies
7/13loop: Fix race conditions in loop_validate_file()drivers/block/loop.c+8 -24 replies
8/13loop: Remove memory barriersdrivers/block/loop.c+0 -80 replies
9/13loop: Split loop_change_fd()drivers/block/loop.c+47 -390 replies
10/13loop: Split loop_configure()drivers/block/loop.c+58 -520 replies
11/13loop: Remove the "bool global" function argumentdrivers/block/loop.c+42 -290 replies
12/13loop: Modify the loop_process_work() calling conventiondrivers/block/loop.c+5 -30 replies
13/13loop: Add __guarded_by() annotationsdrivers/block/loop.c+10 -90 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/13] Improve the loop driver

Hi Jens,

This patch series fixes two bugs and enables lock context analysis in the loop driver. While I am aware that the merge window is open, I'm posting this patch series anyway such that reviewing of this patch series can start.

This series of patches is a reworked version of a subset of the series "[PATCH v2 00/12] Enable lock context analysis in drivers/block/". In this version Nilay's feedback has been addressed.

Thanks,

Bart.

Bart Van Assche (13):
loop: Fix the code for recursion detection
loop: Reorder checks in loop_validate_file()
loop: Enable context analysis
loop: Assign a unique lockdep key to each lo_mutex instance
loop: Add more __must_hold() annotations
loop: Protect all lo_backing_file accesses with lo->lo_mutex
loop: Fix race conditions in loop_validate_file()
loop: Remove memory barriers
loop: Split loop_change_fd()
loop: Split loop_configure()
loop: Remove the "bool global" function argument
loop: Modify the loop_process_work() calling convention
loop: Add __guarded_by() annotations

 drivers/block/Makefile |   2 +
 drivers/block/loop.c   | 382 ++++++++++++++++++++++++-----------------
 2 files changed, 230 insertions(+), 154 deletions(-)