Whamcloud - gitweb
LU-17204 lod: don't panic on short LOVEA 27/52727/3
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 17 Oct 2023 12:21:18 +0000 (15:21 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Nov 2023 22:05:15 +0000 (22:05 +0000)
commit8fa3532b1ee887be378adbf9432707b2d8a2d814
treeb77736da6c3b5538a016af6442bb6cd51cd46589
parentf2f8b6deaf54f1a264b31b44f6cf875fa1629ab2
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.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I26ad5091228bf78858f8538478dbcbdb235cddf4
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52727
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_lov.c