fellow_cache: handle FCS_READfail in readahead

parent c01411f1
......@@ -4521,8 +4521,7 @@ fellow_cache_obj_readahead(
/* ref all incore-ish, remember _DISK */
switch (fcs->state) {
case FCS_READFAIL:
INCOMPL();
break;
goto err;
case FCS_BUSY:
case FCS_READING:
case FCS_WRITING:
......@@ -4572,6 +4571,7 @@ fellow_cache_obj_readahead(
}
ran++;
}
err:
AN(FCO_REFCNT(fco));
FCO_REFCNT(fco) += ion;
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