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

Liu Yuan namei.unix at gmail.com
Tue Jul 24 03:33:37 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 |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sheep/gateway.c b/sheep/gateway.c
index ba8d2f5..a1ca9b8 100644
--- a/sheep/gateway.c
+++ b/sheep/gateway.c
@@ -142,14 +142,14 @@ static inline void pfd_info_init(struct write_info *wi, struct pfd_info *pi)
 }
 
 /*
- * Wait for all forward writes completion.
+ * Wait for all forward requests completion.
  *
- * Even if something goes wrong, we have to wait forward write completion to
+ * Even if something goes wrong, we have to wait forward requests completion to
  * avoid interleaved requests.
  *
  * 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