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

2013-09-29 Thread majianpeng
>majianpeng writes: > >>>majianpeng writes: >>> 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 si

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

2013-09-24 Thread majianpeng
>majianpeng writes: > >>>majianpeng writes: >>> 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 si

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

2013-09-23 Thread majianpeng
>majianpeng writes: > >> 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 lar