spin_unlock_irqrestore(&q->q_lock, flags);
}
-static inline void wake_asender(struct drbd_conf *mdev)
+static inline void wake_asender(struct drbd_tconn *tconn)
{
- if (test_bit(SIGNAL_ASENDER, &mdev->tconn->flags))
- force_sig(DRBD_SIG, mdev->tconn->asender.task);
+ if (test_bit(SIGNAL_ASENDER, &tconn->flags))
+ force_sig(DRBD_SIG, tconn->asender.task);
}
-static inline void request_ping(struct drbd_conf *mdev)
+static inline void request_ping(struct drbd_tconn *tconn)
{
- set_bit(SEND_PING, &mdev->tconn->flags);
- wake_asender(mdev);
+ set_bit(SEND_PING, &tconn->flags);
+ wake_asender(tconn);
}
static inline int drbd_send_short_cmd(struct drbd_conf *mdev,
if (!drop_it) {
dev_err(DEV, "[%s/%d] sock_sendmsg time expired, ko = %u\n",
current->comm, current->pid, mdev->tconn->ko_count);
- request_ping(mdev);
+ request_ping(mdev->tconn);
}
return drop_it; /* && (mdev->state == R_PRIMARY) */;
enum drbd_disk_state nps;
if (new_role == R_PRIMARY)
- request_ping(mdev); /* Detect a dead peer ASAP */
+ request_ping(mdev->tconn); /* Detect a dead peer ASAP */
mutex_lock(&mdev->state_mutex);
* but I don't like the receiver using the msock */
put_ldev(mdev);
- wake_asender(mdev);
+ wake_asender(mdev->tconn);
finish_wait(&mdev->misc_wait, &wait);
return true;
}
if (do_al_complete_io)
drbd_al_complete_io(mdev, e_sector);
- wake_asender(mdev);
+ wake_asender(mdev->tconn);
put_ldev(mdev);
}
static void ping_peer(struct drbd_conf *mdev)
{
clear_bit(GOT_PING_ACK, &mdev->flags);
- request_ping(mdev);
+ request_ping(mdev->tconn);
wait_event(mdev->misc_wait,
test_bit(GOT_PING_ACK, &mdev->flags) || mdev->state.conn < C_CONNECTED);
}