* [PATCH 0/2] Auto stop async-write on block device when device removed.
@ 2013-09-11 11:00 ` majianpeng
0 siblings, 0 replies; 2+ messages in thread
From: majianpeng @ 2013-09-11 11:00 UTC (permalink / raw)
To: axboe, viro; +Cc: LKML, linux-fsdevel
For async-write on block device,if device removed,but the vfs don't know it.
It will continu 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.
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 | 14 ++++++++++++++
fs/block_dev.c | 4 ++++
2 files changed, 18 insertions(+)
--
1.8.4-rc0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 0/2] Auto stop async-write on block device when device removed.
@ 2013-09-11 11:00 ` majianpeng
0 siblings, 0 replies; 2+ messages in thread
From: majianpeng @ 2013-09-11 11:00 UTC (permalink / raw)
To: axboe, viro; +Cc: LKML, linux-fsdevel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 761 bytes --]
For async-write on block device,if device removed,but the vfs don't know it.
It will continu 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.
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 | 14 ++++++++++++++
fs/block_dev.c | 4 ++++
2 files changed, 18 insertions(+)
--
1.8.4-rc0
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-11 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 11:00 [PATCH 0/2] Auto stop async-write on block device when device removed majianpeng
2013-09-11 11:00 ` majianpeng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.