Whamcloud - gitweb
LU-17204 lod: don't panic on short LOVEA
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 9 May 2024 17:34:29 +0000 (20:34 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 13 May 2024 22:35:44 +0000 (22:35 +0000)
commitbedfafcae478dcb3591e6621e8e74d7255bc617f
tree0240edae1b41821ccf70a8e627e53ea21a120093
parent8bb38eef17b66d714efd869bd9aa6971fc891ae4
LU-17204 lod: don't panic on short LOVEA

when we request LOVEA and find the existing buffer is not enough,
we ask for LOVEA's size and reallocate the buffer. but LOVEA can
shrink in parallel (e.g. new default striping), so our expectation
that the size must be greater than size of the existing buffer is
not correct. replace the corresponding assertion with a simple
repeat + extra check for a livelock.

Lustre-commit: 8fa3532b1ee887be378adbf9432707b2d8a2d814
Lustre-change: https://review.whamcloud.com/52727

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I26ad5091228bf78858f8538478dbcbdb235cddf4
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55065
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lod/lod_lov.c