Restore data lifetime support
Status from this message: Applied to the vfs.rw branch of the vfs/vfs.git tree.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 3 repliesApplied
- v16 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Rebased this patch series on top of the vfs.all branch.
- Use READ_ONCE() / WRITE_ONCE() to access i_write_hint in the fcntl implementation.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | fs: Fix rw_hint validationfs/ | +5 | 0 replies | |
| 2/6 | fs: Verify write lifetime constants at compile timefs/ | +7 | 0 replies | |
| 3/6 | fs: Split fcntl_rw_hint()fs/ | +24 | 0 replies | |
| 4/6 | fs: Move enum rw_hint into a new header filefs/ fs/ fs/ +2 more | +29 | 0 replies | |
| 5/6 | fs: Propagate write hints to the struct block_device inodefs/ | +7 | 0 replies | |
| 6/6 | block, fs: Restore the per-bio/request data lifetime fieldsblock/ block/ block/ +10 more | +34 | 1 reply |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig | Kanchan Joshi | Johannes Thumshirn | Chao Yu |
|---|---|---|---|---|
| 1/6 | R-b | R-b | ||
| 2/6 | R-b | R-b | ||
| 3/6 | ||||
| 4/6 | R-b | A-b | ||
| 5/6 | ||||
| 6/6 | R-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.
Cover letter [PATCH v2 0/6] Restore data lifetime support
Hi Christian,
UFS devices are widely used in mobile applications, e.g. in smartphones. UFS vendors need data lifetime information to achieve good performance. Providing data lifetime information to UFS devices can result in up to 40% lower write amplification. Hence this patch series that restores the bi_write_hint member in struct bio. After this patch series has been merged, patches that implement data lifetime support in the SCSI disk (sd) driver will be sent to the Linux kernel SCSI maintainer.
The following changes are included in this patch series:
- Improvements for the F_GET_RW_HINT and F_SET_RW_HINT fcntls.
- Move enum rw_hint into a new header file.
- Support F_SET_RW_HINT for block devices to make it easy to test data lifetime support.
- Restore the bio.bi_write_hint member and restore support in the VFS layer and also in the block layer for data lifetime information.
The shell script that has been used to test the patch series combined with the SCSI patches is available at the end of this cover letter.
Please consider this patch series for the next merge window.
Thanks,
Bart.
Changes compared to v1:
- Rebased this patch series on top of the vfs.all branch.
- Use READ_ONCE() / WRITE_ONCE() to access i_write_hint in the fcntl implementation.
Bart Van Assche (6):
fs: Fix rw_hint validation
fs: Verify write lifetime constants at compile time
fs: Split fcntl_rw_hint()
fs: Move enum rw_hint into a new header file
fs: Propagate write hints to the struct block_device inode block, fs: Restore the per-bio/request data lifetime fields
block/bio.c | 2 ++ block/blk-crypto-fallback.c | 1 + block/blk-merge.c | 8 +++++ block/blk-mq.c | 2 ++ block/bounce.c | 1 + block/fops.c | 3 ++ fs/buffer.c | 12 ++++--- fs/direct-io.c | 2 ++ fs/f2fs/f2fs.h | 1 + fs/fcntl.c | 64 +++++++++++++++++++++++-------------- fs/inode.c | 1 + fs/iomap/buffered-io.c | 1 + fs/iomap/direct-io.c | 1 + fs/mpage.c | 1 + include/linux/blk-mq.h | 2 ++ include/linux/blk_types.h | 2 ++ include/linux/fs.h | 16 ++-------- include/linux/rw_hint.h | 24 ++++++++++++++ 18 files changed, 102 insertions(+), 42 deletions(-) create mode 100644 include/linux/rw_hint.h