X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=e6bbf9a4cd86ee54ec5f3656ac1b8abba5f54e93;hp=31cb35e4e14d82ddfc4af384a7d6a301d1c5d6c7;hb=3dcf18d3;hpb=49c257b73af33971463eb59a46aa15f1d7a4ffb5 diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 31cb35e4..e6bbf9a 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -2897,6 +2897,9 @@ int osc_queue_async_io(const struct lu_env *env, oap->oap_page_off = off; oap->oap_count = count; oap->oap_brw_flags = brw_flags; + /* Give a hint to OST that requests are coming from kswapd - bug19529 */ + if (libcfs_memory_pressure_get()) + oap->oap_brw_flags |= OBD_BRW_MEMALLOC; oap->oap_async_flags = async_flags; if (cmd & OBD_BRW_WRITE) {