Repository navigation
Commit 8408c71
Btrfs: fix wrong error handle when the device is missing or is not writeable
The original bio might be submitted, so we shoud increase bi_remaining to
account for it when we deal with the error that the device is missing or
is not writeable, or we would skip the endio handle.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>1 parent c55f139 commit 8408c71
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5359 | 5359 | | |
5360 | 5360 | | |
5361 | 5361 | | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
| 5366 | + | |
| 5367 | + | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
5362 | 5371 | | |
5363 | 5372 | | |
5364 | 5373 | | |
| |||
5416 | 5425 | | |
5417 | 5426 | | |
5418 | 5427 | | |
5419 | | - | |
5420 | | - | |
5421 | | - | |
5422 | | - | |
5423 | | - | |
| 5428 | + | |
5424 | 5429 | | |
5425 | 5430 | | |
5426 | 5431 | | |
| |||
5583 | 5588 | | |
5584 | 5589 | | |
5585 | 5590 | | |
| 5591 | + | |
| 5592 | + | |
| 5593 | + | |
5586 | 5594 | | |
5587 | 5595 | | |
5588 | 5596 | | |
5589 | 5597 | | |
5590 | | - | |
5591 | | - | |
| 5598 | + | |
| 5599 | + | |
5592 | 5600 | | |
5593 | 5601 | | |
5594 | 5602 | | |
| |||
0 commit comments