diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-02-08 06:46:30 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-09-28 04:33:04 -0400 |
commit | 808222845d62e551630699a1381bbf8a1fd4a286 (patch) | |
tree | 2cbdbad2fcd2b39a5a5fbebdbe7dd99b8cef9266 /drivers/block/drbd/drbd_receiver.c | |
parent | 907599e0446f03b66257cf79720cc0fc1f37b7e3 (diff) |
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.c | 4 |
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) | |||
3779 | int rv; | 3779 | int rv; |
3780 | 3780 | ||
3781 | while (get_t_state(&mdev->tconn->receiver) == RUNNING) { | 3781 | while (get_t_state(&mdev->tconn->receiver) == RUNNING) { |
3782 | drbd_thread_current_set_cpu(mdev, &mdev->tconn->receiver); | 3782 | drbd_thread_current_set_cpu(&mdev->tconn->receiver); |
3783 | if (!drbd_recv_header(mdev->tconn, &pi)) | 3783 | if (!drbd_recv_header(mdev->tconn, &pi)) |
3784 | goto err_out; | 3784 | goto err_out; |
3785 | 3785 | ||
@@ -4568,7 +4568,7 @@ int drbd_asender(struct drbd_thread *thi) | |||
4568 | current->rt_priority = 2; /* more important than all other tasks */ | 4568 | current->rt_priority = 2; /* more important than all other tasks */ |
4569 | 4569 | ||
4570 | while (get_t_state(thi) == RUNNING) { | 4570 | while (get_t_state(thi) == RUNNING) { |
4571 | drbd_thread_current_set_cpu(mdev, thi); | 4571 | drbd_thread_current_set_cpu(thi); |
4572 | if (test_and_clear_bit(SEND_PING, &mdev->tconn->flags)) { | 4572 | if (test_and_clear_bit(SEND_PING, &mdev->tconn->flags)) { |
4573 | if (!drbd_send_ping(mdev)) { | 4573 | if (!drbd_send_ping(mdev)) { |
4574 | dev_err(DEV, "drbd_send_ping has failed\n"); | 4574 | dev_err(DEV, "drbd_send_ping has failed\n"); |