[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What prevents discarding a cluster during rewrite?

From: Vladimir Sementsov-Ogievskiy
Subject: Re: What prevents discarding a cluster during rewrite?
Date: Tue, 23 Feb 2021 00:42:42 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

23.02.2021 00:30, Vladimir Sementsov-Ogievskiy wrote:
Hi all!

Thinking of how to prevent dereferencing to zero (and discard) of host cluster 
during flush of compressed cache (which I'm working on now), I have a 
question.. What prevents it for normal writes?

I have no idea about why didn't it fail for years.. May be, I'm missing 

I have idea of fixing: increase the refcount of host cluster before write to 
data_file (it's important to increase refacount in same s->lock critical 
section where we get host_offset) and dereference it after write.. It should help. 
Any thoughts?

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]