Whamcloud - gitweb
LU-14599 osp: limit allocation at osp_sync_process_committed 50/43250/5
authorAlexander Boyko <alexander.boyko@hpe.com>
Fri, 9 Apr 2021 12:16:55 +0000 (08:16 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 May 2021 02:50:20 +0000 (02:50 +0000)
commit9b692e2e7d105f4926649ea46007ac65b24c4b6d
treef4e841ae3d9faf91dd2a50914b169f25c4464606
parent6b183927e19715d093c80a35ebc42a1cda5e70e2
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.

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/43250
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osp/osp_sync.c