drbd: Rename drbdd_init() -> drbd_receiver()
authorAndreas Gruenbacher <agruen@linbit.com>
Fri, 22 Jul 2011 09:04:36 +0000 (11:04 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:47:58 +0000 (16:47 +0100)
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c

index b0b2eb1..025b336 100644 (file)
@@ -58,6 +58,7 @@
 #include "drbd_vli.h"
 
 static DEFINE_MUTEX(drbd_main_mutex);
+int drbd_receiver(struct drbd_thread *);
 int drbd_worker(struct drbd_thread *);
 
 int drbd_init(void);
@@ -2614,7 +2615,7 @@ struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts)
        mutex_init(&connection->data.mutex);
        mutex_init(&connection->meta.mutex);
 
-       drbd_thread_init(connection, &connection->receiver, drbdd_init, "receiver");
+       drbd_thread_init(connection, &connection->receiver, drbd_receiver, "receiver");
        drbd_thread_init(connection, &connection->worker, drbd_worker, "worker");
        drbd_thread_init(connection, &connection->asender, drbd_asender, "asender");
 
index 5ed169d..63b345d 100644 (file)
@@ -2332,7 +2332,7 @@ static enum drbd_state_rv conn_try_disconnect(struct drbd_connection *connection
                /* Race breaker.  This additional state change request may be
                 * necessary, if this was a forced disconnect during a receiver
                 * restart.  We may have "killed" the receiver thread just
-                * after drbdd_init() returned.  Typically, we should be
+                * after drbd_receiver() returned.  Typically, we should be
                 * C_STANDALONE already, now, and this becomes a no-op.
                 */
                rv2 = conn_request_state(connection, NS(conn, C_STANDALONE),
index 5d9e5cc..c5fd1cf 100644 (file)
@@ -4844,7 +4844,7 @@ static int drbd_do_auth(struct drbd_connection *connection)
 }
 #endif
 
-int drbdd_init(struct drbd_thread *thi)
+int drbd_receiver(struct drbd_thread *thi)
 {
        struct drbd_connection *connection = thi->connection;
        int h;