From: John L. Hammond Date: Thu, 1 Mar 2018 04:52:31 +0000 (-0800) Subject: LU-10331 out: use OBD_ALLOC_LARGE() for update buffers X-Git-Tag: 2.10.4-RC1~80 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7c1373e769f300efcd35c16ce193df682ddfa52f;p=fs%2Flustre-release.git LU-10331 out: use OBD_ALLOC_LARGE() for update buffers In out_handle() the update buffers may be up to 100KB so use OBD_ALLOC_LARGE() to avoid high order page allocation errors. This patch is back-ported from the following one: Lustre-commit: f8987f51967ff5be46fa1d232de21644af927037 Lustre-change: https://review.whamcloud.com/30455 Change-Id: I184e4a46a0d62eb840c07f4ede990e0a659a4e1b Signed-off-by: John L. Hammond Reviewed-by: Andreas Dilger Reviewed-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/31474 Tested-by: Jenkins Tested-by: Maloo --- diff --git a/lustre/target/out_handler.c b/lustre/target/out_handler.c index bd7dc7f..c342ae4 100644 --- a/lustre/target/out_handler.c +++ b/lustre/target/out_handler.c @@ -967,7 +967,7 @@ int out_handle(struct tgt_session_info *tsi) if (tmp->oub_size >= OUT_MAXREQSIZE) GOTO(out_free, rc = err_serious(-EPROTO)); - OBD_ALLOC(update_bufs[i], tmp->oub_size); + OBD_ALLOC_LARGE(update_bufs[i], tmp->oub_size); if (update_bufs[i] == NULL) GOTO(out_free, rc = err_serious(-ENOMEM)); @@ -1165,7 +1165,8 @@ out_free: if (oub != NULL) { for (i = 0; i < update_buf_count; i++, oub++) { if (update_bufs[i] != NULL) - OBD_FREE(update_bufs[i], oub->oub_size); + OBD_FREE_LARGE(update_bufs[i], + oub->oub_size); } }