fellow_cache: handle FCS_READfail in readahead

parent c01411f1
...@@ -4521,8 +4521,7 @@ fellow_cache_obj_readahead( ...@@ -4521,8 +4521,7 @@ fellow_cache_obj_readahead(
/* ref all incore-ish, remember _DISK */ /* ref all incore-ish, remember _DISK */
switch (fcs->state) { switch (fcs->state) {
case FCS_READFAIL: case FCS_READFAIL:
INCOMPL(); goto err;
break;
case FCS_BUSY: case FCS_BUSY:
case FCS_READING: case FCS_READING:
case FCS_WRITING: case FCS_WRITING:
...@@ -4572,6 +4571,7 @@ fellow_cache_obj_readahead( ...@@ -4572,6 +4571,7 @@ fellow_cache_obj_readahead(
} }
ran++; ran++;
} }
err:
AN(FCO_REFCNT(fco)); AN(FCO_REFCNT(fco));
FCO_REFCNT(fco) += ion; FCO_REFCNT(fco) += ion;
fellow_cache_lru_chgbatch_apply(lcb); fellow_cache_lru_chgbatch_apply(lcb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment