Whamcloud - gitweb
LU-16907 ptlrpc: correct the reply buffer size for batch RPC 45/56645/4
authorQian Yingjin <qian@ddn.com>
Thu, 10 Oct 2024 09:48:19 +0000 (17:48 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 2 Dec 2024 05:52:08 +0000 (05:52 +0000)
commit8a7703eec9bb77a0dd85047a04910d30eb8843aa
tree991cb502e298828a575549347fbb064c9803b352
parentf8672e6a0ea9c4fc66a4434601a3783f731aa742
LU-16907 ptlrpc: correct the reply buffer size for batch RPC

The calculation for growing reply buffer size for a batch RPC is
incorrect and it adds the SUB request size wrongly.
This may result in the following panic:
"Max IOV exceeded: 257 should be < 256"
Fix it accordingly.

Fixes: 5a2dfd36f9c ("LU-14139 ptlrpc: grow PtlRPC properly when prepare sub request")
Test-Parameters: testlist=sanity env=ONLY=123f,ONLY_REPEAT=10
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I3c5151a485cac7f3fb9384cd9fb022143ca3389d
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56645
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/layout.c