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

Liu Yuan namei.unix at gmail.com
Mon Jul 23 11:47:27 CEST 2012


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)
 {
 	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




More information about the sheepdog mailing list