Re: [PATCH v2 0/1] bcache: track active bypass writes to prevent stale cache reads
From: Coly Li
Date: Mon Jul 06 2026 - 04:09:06 EST
> 2026年7月6日 15:39,Coly Li <colyli@xxxxxxx> 写道:
>
>> u16 counters: I realized clamping at U16_MAX completely breaks the
>> decrement path. If an I/O burst exceeds 65,535 writes, clamping loses
>> the true count. The counter will drop to 0 prematurely while writes
>> are still in flight, leaving a window for stale reads.
>>
>
> Using u32 is good. For 100TB cache, the refcount pages may occupy around
^^^^^^
This is a typo, should be backend.
> 100MB more or less memory. IMHO that's acceptable.
Coly Li