[sheepdog] [PATCH 2/2] sheep: get current nodes and vnodes from cache
    Liu Yuan 
    namei.unix at gmail.com
       
    Mon May 28 12:16:10 CEST 2012
    
    
  
On 05/25/2012 04:28 PM, yaohaiting.wujue at gmail.com wrote:
> +	if (epoch == sys->epoch) {
> +		rw->cur_nr_nodes = sys->nr_nodes;
> +		memcpy(rw->cur_nodes, sys->nodes, sizeof(rw->cur_nodes));
> +		vnodes = get_vnode_info();
> +		rw->cur_nr_vnodes = vnodes->nr_vnodes;
> +		memcpy(rw->cur_vnodes, 
Since this is executed in worker thread, we must call sys_epoch() instead.
Thanks,
Yuan
    
    
More information about the sheepdog
mailing list