Re: [PATCH] [PATCH V2] bcache: update bucket_in_use in real time

2017-10-24 Thread Michael Lyle
Hi Junhui--- I have applied the patch [with a small whitespace edit] to my tree. I will try to get some test mileage on it. Reviewed-by: Michael Lyle Thanks-- Mike On 10/24/2017 07:26 PM, tang.jun...@zte.com.cn wrote: > From: Tang Junhui > > bucket_in_use is updated in gc thread which trig

[PATCH] [PATCH V2] bcache: update bucket_in_use in real time

2017-10-24 Thread tang . junhui
From: Tang Junhui bucket_in_use is updated in gc thread which triggered by invalidating or writing sectors_to_gc dirty data, It's a long interval. Therefore, when we use it to compare with the threshold, it is often not timely, which leads to inaccurate judgment and often results in bucket deplet