diff options
| author | David Sterba <dsterba@suse.com> | 2018-06-29 04:57:10 -0400 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2018-08-06 07:12:45 -0400 |
| commit | c7b562c5480322ffaf591f45a4ff7ee089340ab4 (patch) | |
| tree | 83804dd7478ebdcedd1704cd354e148f73eb5745 /fs/btrfs/raid56.c | |
| parent | 176571a1f64f7670c87c3f8d3b50c11cc836110e (diff) | |
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 <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.c')
| -rw-r--r-- | fs/btrfs/raid56.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index 272acd9b1192..df41d7049936 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c | |||
| @@ -1686,8 +1686,11 @@ static void run_plug(struct btrfs_plug_cb *plug) | |||
| 1686 | list_del_init(&cur->plug_list); | 1686 | list_del_init(&cur->plug_list); |
| 1687 | 1687 | ||
| 1688 | if (rbio_is_full(cur)) { | 1688 | if (rbio_is_full(cur)) { |
| 1689 | int ret; | ||
| 1690 | |||
| 1689 | /* we have a full stripe, send it down */ | 1691 | /* we have a full stripe, send it down */ |
| 1690 | full_stripe_write(cur); | 1692 | ret = full_stripe_write(cur); |
| 1693 | BUG_ON(ret); | ||
| 1691 | continue; | 1694 | continue; |
| 1692 | } | 1695 | } |
| 1693 | if (last) { | 1696 | if (last) { |
