Auto stop async-write on block device when device removed.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 7 repliesIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | block: Set inode of block_device size to zero when delete gendisk.block/ | +6 | 1 reply | |
| 2/2 | block_dev: Add size check before doing async write on block device.fs/ | +4 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Jeff Moyer |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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