block: introduce helpers for allocating io buffer from slab
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 24 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | block: warn on un-aligned DMA IO bufferblock/ | +2 | 10 replies | |
| 2/5 | block: move .dma_alignment into q->limitsblock/ include/ | +5 | 2 replies | |
| 3/5 | block: make dma_alignment as stacked limitblock/ | +50 | 1 reply | |
| 4/5 | block: introduce helpers for allocating IO buffers from slabblock/ block/ block/ +2 more | +196 | 6 replies | |
| 5/5 | xfs: use block layer helpers to allocate io buffer from slabfs/ fs/ | +37 | 0 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig | Bart Van Assche |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | R-b | R-b |
| 3/5 | ||
| 4/5 | ||
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] block: introduce helpers for allocating io buffer from slab
Hi,
Filesystems may allocate io buffer from slab, and use this buffer to submit bio. This way may break storage drivers if they have special requirement on DMA alignment.
The patch 1 adds one warning if the io buffer isn't aligned to DMA alignment.
The 2nd & 3rd patches make DMA alignment as stacked limit.
The 4th patch introduces helpers for allocating io buffer from slab, and DMA alignment is respected on this allocation.
The 5th patch converts xfs to use the introduced helpers for allocating io buffer from slab.
See previous discussion on this topic:
https://marc.info/?t=153734857500004&r=1&w=2
Thanks,
Ming
Ming Lei (5):
block: warn on un-aligned DMA IO buffer
block: move .dma_alignment into q->limits
block: make dma_alignment as stacked limit
block: introduce helpers for allocating IO buffers from slab
xfs: use block layer helpers to allocate io buffer from slab
block/Makefile | 3 +- block/blk-core.c | 2 + block/blk-merge.c | 2 + block/blk-sec-buf.c | 144 ++++++++++++++++++++++++++++++++++++++++++++ block/blk-settings.c | 89 +++++++++++++++------------ fs/xfs/xfs_buf.c | 28 ++++++++- fs/xfs/xfs_super.c | 13 +++- include/linux/blk-sec-buf.h | 43 +++++++++++++ include/linux/blkdev.h | 9 ++- 9 files changed, 287 insertions(+), 46 deletions(-) create mode 100644 block/blk-sec-buf.c create mode 100644 include/linux/blk-sec-buf.h
Signature · 1 line
2.9.5