Re: What would happen if the block device driver/firmware found some block of a bio is corrupted?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2023/1/24 14:32, Christoph Hellwig wrote:
On Tue, Jan 24, 2023 at 01:38:41PM +0800, Qu Wenruo wrote:
The retry for file read is indeed triggered inside VFS, not fs/block/dm
layer itself.

Well, it's really MM code.  If ->readahead fails, we eventually fall
back to a single-page ->radpage.  That might still be more than one
sector in some cases, but at least nicely narrows down the range.

This also means, if some internal work (like btrfs scrub) is not triggered by MM, then we have to do the split all by ourselves...

Thanks,
Qu



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux