X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_io.c;h=03b4cf8af22f8521a86866f168cc06cfc53ca7ab;hp=6a25750f8032c31863f345fb1821290c27a55090;hb=6bce536725efd166d2772f13fe954f271f9c53b8;hpb=361e9eaef13c0f472ad45388d3e147dabc32b737 diff --git a/lustre/osc/osc_io.c b/lustre/osc/osc_io.c index 6a25750..03b4cf8 100644 --- a/lustre/osc/osc_io.c +++ b/lustre/osc/osc_io.c @@ -143,6 +143,10 @@ int osc_io_submit(const struct lu_env *env, const struct cl_io_slice *ios, if (crt == CRT_READ && ios->cis_io->ci_ndelay) brw_flags |= OBD_BRW_NDELAY; + page = cl_page_list_first(qin); + if (page->cp_type == CPT_TRANSIENT) + brw_flags |= OBD_BRW_NOCACHE; + /* * NOTE: here @page is a top-level page. This is done to avoid * creation of sub-page-list.