Enable testing small DMA segment sizes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest6 patches 11 repliesIn review
- v25 patches 8 repliesSuperseded
- v12 patches 1 replySuperseded
Changes in v3 from the cover letter
- Wrapped an overly long line and fixed the "Fixes:" tag in patch 2.
- Restored the seg_boundary_mask check in patch 3.
- Moved the BLK_MIN_SEGMENT_SIZE constant to a public header file in patch 4.
- Check the max_segment_size value before passing it to the block layer in patch 5.
- Added a sixth patch for scsi_debug to this series. Because the scsi_debug patch uses the BLK_MIN_SEGMENT_SIZE constant, it depends on patch 3.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | block: Fix a source code commentblock/ | +2 | 0 replies | |
| 2/6 | block: Fix the max_user_sectors lower boundblock/ | +2 | 1 reply | |
| 3/6 | block: Fix the DMA segment boundary mask checkblock/ | +4 | 1 reply | |
| 4/6 | block: Reduce the minimum value for the maximum DMA segment sizeblock/ include/ | +1 | 5 replies | |
| 5/6 | null_blk: Support configuring the maximum DMA segment sizedrivers/ drivers/ | +44 | 3 replies | |
| 6/6 | scsi_debug: Support configuring the maximum segment sizedrivers/ | +25 | 1 reply |
Reviews trailers per patch
3 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig | Ming Lei |
|---|---|---|
| 1/6 | R-b | R-b |
| 2/6 | R-b | R-b |
| 3/6 | R-b | |
| 4/6 | ||
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/6] Enable testing small DMA segment sizes
Hi Jens,
About one year ago support was merged for DMA segment sizes smaller than the virtual memory page size. No blktests exist yet for the new codepaths related to small segment size support. This patch series makes it possible to test these code paths on a system (e.g. a VM) with 4 KiB pages.
The corresponding blktest patch is available here:
https://lore.kernel.org/linux-block/[email protected]/
Please consider this patch series for the next merge window.
Thanks,
Bart.
Changes compared to v2:
- Wrapped an overly long line and fixed the "Fixes:" tag in patch 2.
- Restored the seg_boundary_mask check in patch 3.
- Moved the BLK_MIN_SEGMENT_SIZE constant to a public header file in patch 4.
- Check the max_segment_size value before passing it to the block layer in patch 5.
- Added a sixth patch for scsi_debug to this series. Because the scsi_debug patch uses the BLK_MIN_SEGMENT_SIZE constant, it depends on patch 3.
Changes compared to v1:
- Addressed Damien's comment and made the null_blk kernel module parameter more clear.
- Added three patches to this series: one patch that fixes a source code comment and two patches that reduce the number of users of the BLK_MIN_SEGMENT_SIZE constant.
Bart Van Assche (6):
block: Fix a source code comment
block: Fix the max_user_sectors lower bound
block: Fix the DMA segment boundary mask check
block: Reduce the minimum value for the maximum DMA segment size
null_blk: Support configuring the maximum DMA segment size
scsi_debug: Support configuring the maximum segment size
block/blk-settings.c | 15 ++++++----- block/blk.h | 1 - drivers/block/null_blk/main.c | 43 +++++++++++++++++++++++++++++++ drivers/block/null_blk/null_blk.h | 1 + drivers/scsi/scsi_debug.c | 26 ++++++++++++++++++- include/linux/blkdev.h | 1 + 6 files changed, 78 insertions(+), 9 deletions(-)