Skip to content

Auto stop async-write on block device when device removed.

majianpeng linux-fsdevel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesIn review
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

patch1:
-consider the case which disk has partitions -move i_size_write into func invalidate_partition
patch2: No change

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: Set inode of block_device size to zero when delete gendisk.block/genhd.c+6 -01 reply
2/2block_dev: Add size check before doing async write on block device.fs/block_dev.c+4 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJeff Moyer
1/2R-b
2/2

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

Read the v2 thread

Cover letter [PATCH V2 0/2] Auto stop async-write on block device when device removed.

For async-write on block device,if device removed,but the vfs don't know it. It will continue to do.
Patch1 set size of inode of block device to zero when removed disk.By this,vfs know disk changed.
Path2 add size-check on blk_aio_write.If pos of write larger than size of inode,it will return zero.So the user can check disk state.

V2:
patch1:
-consider the case which disk has partitions -move i_size_write into func invalidate_partition
patch2: No change

Jianpeng Ma (2):
block: Set inode of block_device size to zero when delete gendisk.
block_dev: Add size check before doing async write on block device.

 block/genhd.c | 6 ++++++
 fs/block_dev.c |  4 ++++
 2 files changed, 10 insertions(+)
Signature · 1 line
1.8.4-rc0