From f8987f51967ff5be46fa1d232de21644af927037 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Fri, 8 Dec 2017 13:10:21 -0600 Subject: [PATCH] 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. Signed-off-by: John L. Hammond Change-Id: Ie9970eb219ff0e5357132e0858cb16db8f703209 Reviewed-on: https://review.whamcloud.com/30455 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Alex Zhuravlev --- lustre/target/out_handler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/target/out_handler.c b/lustre/target/out_handler.c index 8e761c1..d62bb26 100644 --- a/lustre/target/out_handler.c +++ b/lustre/target/out_handler.c @@ -964,7 +964,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)); @@ -1162,7 +1162,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); } } -- 1.8.3.1