X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fcl_page.c;h=33aaf170acbf6905cad9a224967b41fe60159bea;hp=2a536164a113532025b56d489f57a84094924807;hb=490fd542a9bc8e8dafd22a8f4ca7b186f87ab21c;hpb=32becabb43b6e8f21c030c23c01c3f02e351eaea diff --git a/lustre/obdclass/cl_page.c b/lustre/obdclass/cl_page.c index 2a53616..33aaf17 100644 --- a/lustre/obdclass/cl_page.c +++ b/lustre/obdclass/cl_page.c @@ -1279,6 +1279,10 @@ void cl_page_completion(const struct lu_env *env, CL_PAGE_INVOID_REVERSE(env, pg, CL_PAGE_OP(io[crt].cpo_completion), (const struct lu_env *, const struct cl_page_slice *, int), ioret); + if (pg->cp_sync_io) { + cl_sync_io_note(pg->cp_sync_io, ioret); + pg->cp_sync_io = NULL; + } /* Don't assert the page writeback bit here because the lustre file * may be as a backend of swap space. in this case, the page writeback