X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_io.c;h=bf93df54966655d6c604994abddf742b73643846;hp=110704cda1212a20104d08edf085a56c9f8ac00a;hb=0b2f943a317083a117d6f5f4a22e1d8233a7da77;hpb=49d895fca7758498366328f2f6428b0edca75f77 diff --git a/lustre/osc/osc_io.c b/lustre/osc/osc_io.c index 110704c..bf93df5 100644 --- a/lustre/osc/osc_io.c +++ b/lustre/osc/osc_io.c @@ -164,8 +164,10 @@ static int osc_io_submit(const struct lu_env *env, } cl_page_list_move(qout, qin, page); + spin_lock(&oap->oap_lock); oap->oap_async_flags = ASYNC_URGENT|ASYNC_READY; oap->oap_async_flags |= ASYNC_COUNT_STABLE; + spin_unlock(&oap->oap_lock); osc_page_submit(env, opg, crt, brw_flags); cfs_list_add_tail(&oap->oap_pending_item, &list);