summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_bitmap.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-01-19 14:02:01 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-08-29 11:27:06 +0200
commite6b3ea83bc72e126247b241c1164794a644d6fdc (patch)
tree763f2cdf1c57a33029153238cc0250b483334eb0 /drivers/block/drbd/drbd_bitmap.c
parentdrbd: moved data and meta from mdev to tconn (diff)
downloadlinux-e6b3ea83bc72e126247b241c1164794a644d6fdc.tar.xz
linux-e6b3ea83bc72e126247b241c1164794a644d6fdc.zip
drbd: moved receiver, worker and asender from mdev to tconn
Patch mostly: sed -i -e 's/mdev->receiver/mdev->tconn->receiver/g' \ -e 's/mdev->worker/mdev->tconn->worker/g' \ -e 's/mdev->asender/mdev->tconn->asender/g' \ *.[ch] 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_bitmap.c')
-rw-r--r--drivers/block/drbd/drbd_bitmap.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
index c756b4dbd135..4da4c322fa56 100644
--- a/drivers/block/drbd/drbd_bitmap.c
+++ b/drivers/block/drbd/drbd_bitmap.c
@@ -119,13 +119,13 @@ static void __bm_print_lock_info(struct drbd_conf *mdev, const char *func)
if (!__ratelimit(&drbd_ratelimit_state))
return;
dev_err(DEV, "FIXME %s in %s, bitmap locked for '%s' by %s\n",
- current == mdev->receiver.task ? "receiver" :
- current == mdev->asender.task ? "asender" :
- current == mdev->worker.task ? "worker" : current->comm,
+ current == mdev->tconn->receiver.task ? "receiver" :
+ current == mdev->tconn->asender.task ? "asender" :
+ current == mdev->tconn->worker.task ? "worker" : current->comm,
func, b->bm_why ?: "?",
- b->bm_task == mdev->receiver.task ? "receiver" :
- b->bm_task == mdev->asender.task ? "asender" :
- b->bm_task == mdev->worker.task ? "worker" : "?");
+ b->bm_task == mdev->tconn->receiver.task ? "receiver" :
+ b->bm_task == mdev->tconn->asender.task ? "asender" :
+ b->bm_task == mdev->tconn->worker.task ? "worker" : "?");
}
void drbd_bm_lock(struct drbd_conf *mdev, char *why, enum bm_flag flags)
@@ -142,13 +142,13 @@ void drbd_bm_lock(struct drbd_conf *mdev, char *why, enum bm_flag flags)
if (trylock_failed) {
dev_warn(DEV, "%s going to '%s' but bitmap already locked for '%s' by %s\n",
- current == mdev->receiver.task ? "receiver" :
- current == mdev->asender.task ? "asender" :
- current == mdev->worker.task ? "worker" : current->comm,
+ current == mdev->tconn->receiver.task ? "receiver" :
+ current == mdev->tconn->asender.task ? "asender" :
+ current == mdev->tconn->worker.task ? "worker" : current->comm,
why, b->bm_why ?: "?",
- b->bm_task == mdev->receiver.task ? "receiver" :
- b->bm_task == mdev->asender.task ? "asender" :
- b->bm_task == mdev->worker.task ? "worker" : "?");
+ b->bm_task == mdev->tconn->receiver.task ? "receiver" :
+ b->bm_task == mdev->tconn->asender.task ? "asender" :
+ b->bm_task == mdev->tconn->worker.task ? "worker" : "?");
mutex_lock(&b->bm_change);
}
if (BM_LOCKED_MASK & b->bm_flags)