Whamcloud - gitweb
LU-14139 ptlrpc: grow PtlRPC properly when prepare sub request 07/43707/14
authorQian Yingjin <qian@ddn.com>
Fri, 14 May 2021 14:53:52 +0000 (22:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 22 Apr 2023 17:32:42 +0000 (17:32 +0000)
commit5a2dfd36f9c2b6c10ab7ba44b0e9e86372623fde
tree35a3659272771f146eb69c3eac1b88973f6fc6af
parent3ba223327f357f3da9ab81b6808422c4b0a9fbc3
LU-14139 ptlrpc: grow PtlRPC properly when prepare sub request

In this patch, it prepares and grows PtlRPC reply buffer
properly for SUB batch request in @req_capsule_server_pack().

At the same time, it adds a limit of reply buffer size with
BUT_MAXREPSIZE = (1000 * 1024).

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I4277974b3b0e9cd19fd0d18ae7c029cccaa9c558
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/43707
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_net.h
lustre/mdc/mdc_batch.c
lustre/mdt/mdt_batch.c
lustre/ptlrpc/batch.c
lustre/ptlrpc/layout.c
lustre/tests/sanity.sh