[sheepdog] [PATCH] sheep: rename bs_thread_request_done() -> worker_thread_request_done()

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Fri May 10 08:43:09 CEST 2013


The prefix "bs_" of the name bs_thread_request_done() would've come
from the naming scheme of tgt (the "backing store"). This prefix is
unclear so this patch rename it.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 sheep/work.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sheep/work.c b/sheep/work.c
index 7fe0889..41c03a9 100644
--- a/sheep/work.c
+++ b/sheep/work.c
@@ -141,7 +141,7 @@ void queue_work(struct work_queue *q, struct work *work)
 	pthread_cond_signal(&wi->pending_cond);
 }
 
-static void bs_thread_request_done(int fd, int events, void *data)
+static void worker_thread_request_done(int fd, int events, void *data)
 {
 	int ret;
 	struct worker_info *wi;
@@ -246,7 +246,7 @@ int init_wqueue_eventfd(void)
 		return 1;
 	}
 
-	ret = register_event(efd, bs_thread_request_done, NULL);
+	ret = register_event(efd, worker_thread_request_done, NULL);
 	if (ret) {
 		sd_eprintf("failed to register event fd %m");
 		close(efd);
-- 
1.7.2.5




More information about the sheepdog mailing list