提交 c7b562c5 编写于 作者: D David Sterba

btrfs: raid56: catch errors from full_stripe_write

Add fall-back code to catch failure of full_stripe_write. Proper error
handling from inside run_plug would need more code restructuring as it's
called at arbitrary points by io scheduler.
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 176571a1
......@@ -1686,8 +1686,11 @@ static void run_plug(struct btrfs_plug_cb *plug)
list_del_init(&cur->plug_list);
if (rbio_is_full(cur)) {
int ret;
/* we have a full stripe, send it down */
full_stripe_write(cur);
ret = full_stripe_write(cur);
BUG_ON(ret);
continue;
}
if (last) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册