Whamcloud - gitweb
LU-14599 osp: limit allocation at osp_sync_process_committed
authorAlexander Boyko <alexander.boyko@hpe.com>
Wed, 5 Oct 2022 07:06:59 +0000 (00:06 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 11 Oct 2022 07:54:45 +0000 (07:54 +0000)
commit989e202f8e9ee6676486450baec81ee4e92a7f9c
tree5ecd2aadd7542301ad3330681ca195d0fb945b94
parentde4d0db15f8de47ff2fe52b43cda96df55a7b91e
LU-14599 osp: limit allocation at osp_sync_process_committed

Sometimes osp cancels very large cookie list with 64K elements.
In this case osp_sync_process_committed() tries to allocate 64 pages
and uses vmalloc.
The fix limits memory allocation size to 4 page with kmalloc, and
reuse it in a loop.

Lustre-change: https://review.whamcloud.com/43250
Lustre-commit: 9b692e2e7d105f4926649ea46007ac65b24c4b6d

HPE-bug-id: LUS-9815
Fixes: 6d7332102 ("LU-11924 osp: combine llog cancel operations")
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: Ic875335a28f78494fdb3cbc4b0145e5a43831ee8
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48773
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osp/osp_sync.c