nbd: WRITE_ZEROES and a few fixes
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 2 repliesApplied
- v33 patches 3 repliesSuperseded
- v23 patches 3 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 2 replies | Superseded |
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nbd: implement the WRITE_ZEROES commanddrivers/ include/ | +12 | 0 replies | |
| 2/3 | nbd: nbd_bg_flags_show: add NBD_FLAG_ROTATIONALdrivers/ | +2 | 0 replies | |
| 3/3 | nbd: correct the maximum value for discard sectorsdrivers/ | +1 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Damien Le Moal |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/3] nbd: WRITE_ZEROES and a few fixes
Implement the WRITE_ZEROES command for the NBD kernel driver. While here, add NBD_FLAG_ROTATIONAL to the function that decodes our flags for debugfs.
---
v2: Divide UINT_MAX by blksize for the maximum number of sectors supported by trim/discard and write_zeroes commands, as NBD uses 32-bit values for byte lengths, and otherwise that wouldn't fit.
v3: Use the SECTOR_SHIFT value as a right-shift operand, rather than the blksize value, to get the correct operand.
v4: Fix commit messages to use correct style. Thanks, Jens.
--- drivers/block/nbd.c | 12 +++++++++++- include/uapi/linux/nbd.h | 5 ++++- 2 files changed, 15 insertions(+), 2 deletions(-)