X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fost%2Fost_handler.c;h=faf551da8cc8df020d8fc14c674257868f1a8657;hp=2796d9f7c5145ca0cd8985237647421c4cede1f9;hb=3dcf18d3;hpb=49c257b73af33971463eb59a46aa15f1d7a4ffb5 diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 2796d9f..faf551d 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -903,6 +903,10 @@ static int ost_brw_write(struct ptlrpc_request *req, struct obd_trans_info *oti) body = lustre_msg_buf(req->rq_reqmsg, REQ_REC_OFF, sizeof(*body)); LASSERT(body != NULL); + if ((body->oa.o_flags & OBD_BRW_MEMALLOC) && + (exp->exp_connection->c_peer.nid == exp->exp_connection->c_self)) + libcfs_memory_pressure_set(); + objcount = lustre_msg_buflen(req->rq_reqmsg, REQ_REC_OFF + 1) / sizeof(*ioo); ioo = lustre_msg_buf(req->rq_reqmsg, REQ_REC_OFF + 1, @@ -1166,6 +1170,7 @@ out: exp->exp_connection->c_remote_uuid.uuid, libcfs_id2str(req->rq_peer)); } + libcfs_memory_pressure_clr(); RETURN(rc); }