Skip to content

block: cope with WRITE ZEROES failing in blkdev_issue_zeroout()

Ilya Dryomov linux-block 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v22 patches 8 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- another code flow change in blkdev_issue_zeroout() suggested by Christoph -- no functional changes

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: factor out __blkdev_issue_zero_pages()block/blk-lib.c+37 -262 replies
2/2block: cope with WRITE ZEROES failing in blkdev_issue_zeroout()block/blk-lib.c+35 -102 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigMartin K. Petersen
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] block: cope with WRITE ZEROES failing in blkdev_issue_zeroout()

Hi Christoph, Martin,

blkdev_issue_zeroout() now checks for any error. This required a minor refactor, so I dropped the stable tag, Jens can add it back if needed.

v2 -> v3:
- another code flow change in blkdev_issue_zeroout() suggested by Christoph -- no functional changes

v1 -> v2:
- changed code flow in blkdev_issue_zeroout() according to Christoph's suggestion
- this required adding additional checks to blkdev_issue_zeroout() and __blkdev_issue_zero_pages(), the latter is no longer void

Previous version at

https://marc.info/?l=linux-block&m=150712940922089&w=2

Thanks,

Ilya

Ilya Dryomov (2):
block: factor out __blkdev_issue_zero_pages()
block: cope with WRITE ZEROES failing in blkdev_issue_zeroout()

 block/blk-lib.c | 108 +++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 72 insertions(+), 36 deletions(-)
Signature · 1 line
2.4.3