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

MORITA Kazutaka morita.kazutaka at gmail.com
Wed Jul 11 09:09:49 CEST 2012


At Wed, 11 Jul 2012 15:08:28 +0800,
levin li wrote:
> 
> 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.

Oops, sorry, I'll dig into it more tonight.

Thanks,

Kazutaka



More information about the sheepdog mailing list