spin_lock_irqsave(&thi->t_lock, flags);
 
-       /* if the receiver has been "Exiting", the last thing it did
+       /* if the receiver has been "EXITING", the last thing it did
         * was set the conn state to "StandAlone",
         * if now a re-connect request comes in, conn state goes C_UNCONNECTED,
         * and receiver thread will be "started".
-        * drbd_thread_start needs to set "Restarting" in that case.
+        * drbd_thread_start needs to set "RESTARTING" in that case.
         * t_state check and assignment needs to be within the same spinlock,
-        * so either thread_start sees Exiting, and can remap to Restarting,
-        * or thread_start see None, and can proceed as normal.
+        * so either thread_start sees EXITING, and can remap to RESTARTING,
+        * or thread_start see NONE, and can proceed as normal.
         */
 
-       if (thi->t_state == Restarting) {
+       if (thi->t_state == RESTARTING) {
                dev_info(DEV, "Restarting %s\n", current->comm);
-               thi->t_state = Running;
+               thi->t_state = RUNNING;
                spin_unlock_irqrestore(&thi->t_lock, flags);
                goto restart;
        }
 
        thi->task = NULL;
-       thi->t_state = None;
+       thi->t_state = NONE;
        smp_mb();
        complete(&thi->stop);
        spin_unlock_irqrestore(&thi->t_lock, flags);
 {
        spin_lock_init(&thi->t_lock);
        thi->task    = NULL;
-       thi->t_state = None;
+       thi->t_state = NONE;
        thi->function = func;
        thi->mdev = mdev;
 }
        spin_lock_irqsave(&thi->t_lock, flags);
 
        switch (thi->t_state) {
-       case None:
+       case NONE:
                dev_info(DEV, "Starting %s thread (from %s [%d])\n",
                                me, current->comm, current->pid);
 
                init_completion(&thi->stop);
                D_ASSERT(thi->task == NULL);
                thi->reset_cpu_mask = 1;
-               thi->t_state = Running;
+               thi->t_state = RUNNING;
                spin_unlock_irqrestore(&thi->t_lock, flags);
                flush_signals(current); /* otherw. may get -ERESTARTNOINTR */
 
                }
                spin_lock_irqsave(&thi->t_lock, flags);
                thi->task = nt;
-               thi->t_state = Running;
+               thi->t_state = RUNNING;
                spin_unlock_irqrestore(&thi->t_lock, flags);
                wake_up_process(nt);
                break;
-       case Exiting:
-               thi->t_state = Restarting;
+       case EXITING:
+               thi->t_state = RESTARTING;
                dev_info(DEV, "Restarting %s thread (from %s [%d])\n",
                                me, current->comm, current->pid);
                /* fall through */
-       case Running:
-       case Restarting:
+       case RUNNING:
+       case RESTARTING:
        default:
                spin_unlock_irqrestore(&thi->t_lock, flags);
                break;
 {
        unsigned long flags;
 
-       enum drbd_thread_state ns = restart ? Restarting : Exiting;
+       enum drbd_thread_state ns = restart ? RESTARTING : EXITING;
 
        /* may be called from state engine, holding the req lock irqsave */
        spin_lock_irqsave(&thi->t_lock, flags);
 
-       if (thi->t_state == None) {
+       if (thi->t_state == NONE) {
                spin_unlock_irqrestore(&thi->t_lock, flags);
                if (restart)
                        drbd_thread_start(thi);
 
        drop_it =   mdev->meta.socket == sock
                || !mdev->asender.task
-               || get_t_state(&mdev->asender) != Running
+               || get_t_state(&mdev->asender) != RUNNING
                || mdev->state.conn < C_CONNECTED;
 
        if (drop_it)
 void drbd_mdev_cleanup(struct drbd_conf *mdev)
 {
        int i;
-       if (mdev->receiver.t_state != None)
+       if (mdev->receiver.t_state != NONE)
                dev_err(DEV, "ASSERT FAILED: receiver t_state == %d expected 0.\n",
                                mdev->receiver.t_state);
 
 
                if (signal_pending(current)) {
                        flush_signals(current);
                        smp_rmb();
-                       if (get_t_state(&mdev->receiver) == Exiting)
+                       if (get_t_state(&mdev->receiver) == EXITING)
                                goto out_release_sockets;
                }
 
        size_t shs; /* sub header size */
        int rv;
 
-       while (get_t_state(&mdev->receiver) == Running) {
+       while (get_t_state(&mdev->receiver) == RUNNING) {
                drbd_thread_current_set_cpu(mdev);
                if (!drbd_recv_header(mdev, &cmd, &packet_size))
                        goto err_out;
        current->policy = SCHED_RR;  /* Make this a realtime task! */
        current->rt_priority = 2;    /* more important than all other tasks */
 
-       while (get_t_state(thi) == Running) {
+       while (get_t_state(thi) == RUNNING) {
                drbd_thread_current_set_cpu(mdev);
                if (test_and_clear_bit(SEND_PING, &mdev->flags)) {
                        ERR_IF(!drbd_send_ping(mdev)) goto reconnect;
 
 
        sprintf(current->comm, "drbd%d_worker", mdev_to_minor(mdev));
 
-       while (get_t_state(thi) == Running) {
+       while (get_t_state(thi) == RUNNING) {
                drbd_thread_current_set_cpu(mdev);
 
                if (down_trylock(&mdev->data.work.s)) {
                if (intr) {
                        D_ASSERT(intr == -EINTR);
                        flush_signals(current);
-                       ERR_IF (get_t_state(thi) == Running)
+                       ERR_IF (get_t_state(thi) == RUNNING)
                                continue;
                        break;
                }
 
-               if (get_t_state(thi) != Running)
+               if (get_t_state(thi) != RUNNING)
                        break;
                /* With this break, we have done a down() but not consumed
                   the entry from the list. The cleanup code takes care of
 
        D_ASSERT(mdev->state.disk == D_DISKLESS && mdev->state.conn == C_STANDALONE);
        /* _drbd_set_state only uses stop_nowait.
-        * wait here for the Exiting receiver. */
+        * wait here for the EXITING receiver. */
        drbd_thread_stop(&mdev->receiver);
        drbd_mdev_cleanup(mdev);