Skip to content

block/loop: handle discard/zeroout error

Shaohua Li linux-block 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block/loop: don't hijack error numberdrivers/block/loop.c+2 -20 replies
2/3block/loop: use FALLOC_FL_ZERO_RANGE for REQ_OP_WRITE_ZEROESdrivers/block/loop.c+3 -00 replies
3/3block/loop: suppress discard IO error messagedrivers/block/loop.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3]block/loop: handle discard/zeroout error

Fix some problems when setting up loop device with a block device as back file and create/mount ext4 in the loop device.

BTW: blkdev_issue_zeroout retries if we immediately find the device doesn't support zeroout, but it doesn't retry if submit_bio_wait returns -EOPNOTSUPP. Is this correct behavior?

Thanks,
Shaohua

Shaohua Li (3):
block/loop: don't hijack error number
block/loop: use FALLOC_FL_ZERO_RANGE for REQ_OP_WRITE_ZEROES block/loop: suppress discard IO error message

 drivers/block/loop.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.9.5