From: John L. Hammond Date: Fri, 8 Dec 2017 19:10:21 +0000 (-0600) Subject: LU-10331 out: use OBD_ALLOC_LARGE() for update buffers X-Git-Tag: 2.10.57~88 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F30455%2F2;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. 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 --- 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); } }