X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_io.c;h=34346348ee4ed095020795d4a704a5525dc8e957;hp=7713af9b031ae83edd3175f20105bc0f3c3e8cf0;hb=5a6aa0e6d1583cc0d4c82ae8c95fb7b9856d6284;hpb=66153d87190a3547099446d222f36114d3eeffad diff --git a/lustre/osd-ldiskfs/osd_io.c b/lustre/osd-ldiskfs/osd_io.c index 7713af9..3434634 100644 --- a/lustre/osd-ldiskfs/osd_io.c +++ b/lustre/osd-ldiskfs/osd_io.c @@ -1352,6 +1352,10 @@ static int osd_read_prep(const struct lu_env *env, struct dt_object *dt, else lnb[i].lnb_rc = lnb[i].lnb_len; + /* Bypass disk read if fail_loc is set properly */ + if (OBD_FAIL_CHECK(OBD_FAIL_OST_FAKE_RW)) + SetPageUptodate(lnb[i].lnb_page); + if (PageUptodate(lnb[i].lnb_page)) { cache_hits++; } else {