X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fbatch.c;fp=lustre%2Fptlrpc%2Fbatch.c;h=ecaa8605f7dfa01dc1b607259367e374c850f4b0;hb=d22c78fde8d75aecb6f712fd51bc4843a517cad4;hp=1684b315b0ac479991ae631e8c2cc45c93619d99;hpb=629b0534e141be289d2e4c763fcd141af4acd3d2;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/batch.c b/lustre/ptlrpc/batch.c index 1684b31..ecaa860 100644 --- a/lustre/ptlrpc/batch.c +++ b/lustre/ptlrpc/batch.c @@ -483,10 +483,7 @@ static int batch_send_update_req(const struct lu_env *env, if (flags & BATCH_FL_SYNC) { rc = ptlrpc_queue_wait(req); } else { - if ((flags & (BATCH_FL_RDONLY | BATCH_FL_RQSET)) == - BATCH_FL_RDONLY) { - ptlrpcd_add_req(req); - } else if (flags & BATCH_FL_RQSET) { + if (bh && (flags & BATCH_FL_RQSET)) { ptlrpc_set_add_req(bh->lbt_rqset, req); ptlrpc_check_set(env, bh->lbt_rqset); } else {