Re: [PATCH] bcache: recal cached_dev_sectors on detach

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

 



On 2018/8/2 5:06 PM, Coly Li wrote:
> On 2018/7/31 7:24 PM, Shenghui Wang wrote:
>> Recal cached_dev_sectors on cached_dev detached, as recal done on
>> cached_dev attached.
>>
>> Signed-off-by: Shenghui Wang <shhuiw@xxxxxxxxxxx>
> 
> Hi Shenghui,
> 
> Nice catch, I will pick it for v4.19. Also I think this fix can also go
> into stable, I will CC it to stable@xxxxxxxxxxxxxxx too.
> 
> Thanks.
> 
> Coly Li
> 
>> ---
>>  drivers/md/bcache/super.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
>> index fa4058e43202..d693fec8f39f 100644
>> --- a/drivers/md/bcache/super.c
>> +++ b/drivers/md/bcache/super.c
>> @@ -991,6 +991,7 @@ static void cached_dev_detach_finish(struct work_struct *w)
>>  
>>  	bcache_device_detach(&dc->disk);
>>  	list_move(&dc->list, &uncached_devices);
>> +	calc_cached_dev_sectors(dc->disk->c);

Hi Shenghui,

Did you test this patch ?  This line does not pass my compiling test,
could you please to have a look for the following error message:

drivers/md/bcache/super.c: In function ‘cached_dev_detach_finish’:
drivers/md/bcache/super.c:1012:34: error: invalid type argument of ‘->’
(have ‘struct bcache_device’)
  calc_cached_dev_sectors(dc->disk->c);
                                  ^~

Thanks.

>>  
>>  	clear_bit(BCACHE_DEV_DETACHING, &dc->disk.flags);
>>  	clear_bit(BCACHE_DEV_UNLINK_DONE, &dc->disk.flags);
>>

--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux