|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] Cache->Cursor may point to Slab
On 03/05/2024 11:33, Owen Smith wrote: Its possible that the Cursor refers to the only Slab that has no allocated objects, but there are other slabs which are fully allocated. The current ASSERTions are not valid, and needs rework. Also adds more comments and ASSERTions to validate whats going on. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx> --- src/xenbus/cache.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/xenbus/cache.c b/src/xenbus/cache.c index 6229aed..821f66a 100644 --- a/src/xenbus/cache.c +++ b/src/xenbus/cache.c @@ -479,20 +479,25 @@ CacheDestroySlab(// Now that we don't spill empty slabs immediately, I think the cursor could actually point at any one of several empty slabs.
Acked-by: Paul Durrant <paul@xxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |