[sheepdog] [PATCH 1/2] gateway: rename wait_forward_write to wait_forward_request

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Jul 23 12:22:46 CEST 2012


At Mon, 23 Jul 2012 17:47:27 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> This is not write specific only for now.
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/gateway.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sheep/gateway.c b/sheep/gateway.c
> index ba8d2f5..9f46091 100644
> --- a/sheep/gateway.c
> +++ b/sheep/gateway.c
> @@ -149,7 +149,7 @@ static inline void pfd_info_init(struct write_info *wi, struct pfd_info *pi)
>   *
>   * Return error code if any one request fails.
>   */
> -static int wait_forward_write(struct write_info *wi, struct sd_rsp *rsp)
> +static int wait_forward_request(struct write_info *wi, struct sd_rsp *rsp)

The comments of wait_forward_write() should also be modified.

Thanks,

Kazutaka

>  {
>  	int nr_sent, err_ret = SD_RES_SUCCESS, ret, pollret, i;
>  	struct pfd_info pi;;
> @@ -286,7 +286,7 @@ static int gateway_forward_request(struct request *req)
>  
>  	dprintf("nr_sent %d, err %x\n", wi.nr_sent, err_ret);
>  	if (wi.nr_sent > 0) {
> -		ret = wait_forward_write(&wi, rsp);
> +		ret = wait_forward_request(&wi, rsp);
>  		if (ret != SD_RES_SUCCESS)
>  			err_ret = ret;
>  	}
> -- 
> 1.7.10.2
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list