[sheepdog] [PATCH v4 2/8] sheep: make requests with new epoch sleep until epoch is updated

Christoph Hellwig hch at infradead.org
Fri May 25 16:26:39 CEST 2012


>  	if (!req->local_oid && !req->local_cow_oid)
>  		return 0;
>  	else {
> -		int ret = check_epoch(req);
> -		if (ret != SD_RES_SUCCESS) {
> -			req->rp.result = ret;
> -			sys->nr_outstanding_io++;
> +		if (before(req->rq.epoch, sys->epoch)) {

Please remove on layer of identation here, there's no need for the else
after an return statement.




More information about the sheepdog mailing list