• S
    raid5-cache: IO error handling · 6e74a9cf
    Shaohua Li 提交于
    There are 3 places the raid5-cache dispatches IO. The discard IO error
    doesn't matter, so we ignore it. The superblock write IO error can be
    handled in MD core. The remaining are log write and flush. When the IO
    error happens, we mark log disk faulty and fail all write IO. Read IO is
    still allowed to run. Userspace will get a notification too and
    corresponding daemon can choose setting raid array readonly for example.
    Signed-off-by: NShaohua Li <shli@fb.com>
    Signed-off-by: NNeilBrown <neilb@suse.com>
    6e74a9cf
raid5.c 222.3 KB