[sheepdog] [PATCH v2 1/3] sheep: notify VDI deletion to all nodes when deleting a VDI

levin li levin108 at gmail.com
Wed Jul 11 09:08:28 CEST 2012


On 2012年07月11日 15:04, MORITA Kazutaka wrote:
> At Wed, 11 Jul 2012 14:42:45 +0800,
> levin li wrote:
>> @@ -435,11 +450,15 @@ static void delete_one(struct work *work)
>>  		}
>>  
>>  		ret = remove_object(oid);
>> -
>>  		if (ret != SD_RES_SUCCESS)
>>  			eprintf("remove object %" PRIx64 " fail, %d\n", oid, ret);
>> +
>> +		nr_deleted++;
>>  	}
>>  
>> +	if (nr_deleted)
>> +		notify_vdi_deletion(vdi_id);
>> +
> 
> Should we notify it only when object cache is enabled?
> 
> Thanks,
> 
> Kazutaka
> 

No, it's nothing to do with object cache, it's a reclaim work for object list cache.

thanks,

levin




More information about the sheepdog mailing list