[sheepdog] [PATCH v2 4/4] sheep: simply use 'list' instead of 'dw_siblings'

Liu Yuan namei.unix at gmail.com
Mon Apr 29 13:00:09 CEST 2013


From: Liu Yuan <tailai.ly at taobao.com>

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 sheep/vdi.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sheep/vdi.c b/sheep/vdi.c
index 1434971..eb57d13 100644
--- a/sheep/vdi.c
+++ b/sheep/vdi.c
@@ -552,7 +552,7 @@ struct deletion_work {
 	uint32_t done;
 
 	struct work work;
-	struct list_head dw_siblings;
+	struct list_head list;
 	struct request *req;
 
 	uint32_t vid;
@@ -681,7 +681,7 @@ static void delete_one_done(struct work *work)
 		return;
 	}
 
-	list_del(&dw->dw_siblings);
+	list_del(&dw->list);
 
 	put_request(req);
 
@@ -690,7 +690,7 @@ static void delete_one_done(struct work *work)
 
 	if (!list_empty(&deletion_work_list)) {
 		dw = list_first_entry(&deletion_work_list,
-				      struct deletion_work, dw_siblings);
+				      struct deletion_work, list);
 
 		queue_work(sys->deletion_wqueue, &dw->work);
 	}
@@ -832,10 +832,10 @@ static int start_deletion(struct request *req, uint32_t vid)
 	uatomic_inc(&req->refcnt);
 
 	if (list_empty(&deletion_work_list)) {
-		list_add_tail(&dw->dw_siblings, &deletion_work_list);
+		list_add_tail(&dw->list, &deletion_work_list);
 		queue_work(sys->deletion_wqueue, &dw->work);
 	} else
-		list_add_tail(&dw->dw_siblings, &deletion_work_list);
+		list_add_tail(&dw->list, &deletion_work_list);
 out:
 	return SD_RES_SUCCESS;
 err:
-- 
1.7.9.5




More information about the sheepdog mailing list