mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
lightnvm: check bi_error in gc
We should check last io completion status before starting another one. Signed-off-by: Wenwei Tao <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
22513215b8
commit
2b11c1b24e
1 changed files with 6 additions and 0 deletions
|
|
@ -330,6 +330,10 @@ try:
|
|||
goto finished;
|
||||
}
|
||||
wait_for_completion_io(&wait);
|
||||
if (bio->bi_error) {
|
||||
rrpc_inflight_laddr_release(rrpc, rqd);
|
||||
goto finished;
|
||||
}
|
||||
|
||||
bio_reset(bio);
|
||||
reinit_completion(&wait);
|
||||
|
|
@ -352,6 +356,8 @@ try:
|
|||
wait_for_completion_io(&wait);
|
||||
|
||||
rrpc_inflight_laddr_release(rrpc, rqd);
|
||||
if (bio->bi_error)
|
||||
goto finished;
|
||||
|
||||
bio_reset(bio);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue