summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_receiver.c
diff options
context:
space:
mode:
authorPhilipp Reisner2011-02-08 12:46:30 +0100
committerPhilipp Reisner2011-09-28 10:33:04 +0200
commit808222845d62e551630699a1381bbf8a1fd4a286 (patch)
tree2cbdbad2fcd2b39a5a5fbebdbe7dd99b8cef9266 /drivers/block/drbd/drbd_receiver.c
parentdrbd: Converted drbd_connect() from mdev to tconn (diff)
downloadkernel-qcow2-linux-808222845d62e551630699a1381bbf8a1fd4a286.tar.gz
kernel-qcow2-linux-808222845d62e551630699a1381bbf8a1fd4a286.tar.xz
kernel-qcow2-linux-808222845d62e551630699a1381bbf8a1fd4a286.zip
drbd: Converted drbd_calc_cpu_mask() and drbd_thread_current_set_cpu() from mdev to tconn
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_receiver.c')
-rw-r--r--drivers/block/drbd/drbd_receiver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index 28df7cd55b3f..c8d173c11390 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -3779,7 +3779,7 @@ static void drbdd(struct drbd_conf *mdev)
int rv;
while (get_t_state(&mdev->tconn->receiver) == RUNNING) {
- drbd_thread_current_set_cpu(mdev, &mdev->tconn->receiver);
+ drbd_thread_current_set_cpu(&mdev->tconn->receiver);
if (!drbd_recv_header(mdev->tconn, &pi))
goto err_out;
@@ -4568,7 +4568,7 @@ int drbd_asender(struct drbd_thread *thi)
current->rt_priority = 2; /* more important than all other tasks */
while (get_t_state(thi) == RUNNING) {
- drbd_thread_current_set_cpu(mdev, thi);
+ drbd_thread_current_set_cpu(thi);
if (test_and_clear_bit(SEND_PING, &mdev->tconn->flags)) {
if (!drbd_send_ping(mdev)) {
dev_err(DEV, "drbd_send_ping has failed\n");