Skip to content

Commit c7b562c

Browse files
committed
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: David Sterba <[email protected]>
1 parent 176571a commit c7b562c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/btrfs/raid56.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,8 +1686,11 @@ static void run_plug(struct btrfs_plug_cb *plug)
16861686
list_del_init(&cur->plug_list);
16871687

16881688
if (rbio_is_full(cur)) {
1689+
int ret;
1690+
16891691
/* we have a full stripe, send it down */
1690-
full_stripe_write(cur);
1692+
ret = full_stripe_write(cur);
1693+
BUG_ON(ret);
16911694
continue;
16921695
}
16931696
if (last) {

0 commit comments

Comments
 (0)