summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_bitmap.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-02-09 09:33:31 (GMT)
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-09-28 08:33:13 (GMT)
commit392c8801922f51466045ece2f1f2884b8c9cd9a2 (patch)
tree610c3e8df33d989257edcb7ba2da0a898661b27d /drivers/block/drbd/drbd_bitmap.c
parent19393e105f9702a014d3ce08bce92b3ad9cf96b5 (diff)
downloadlinux-392c8801922f51466045ece2f1f2884b8c9cd9a2.tar.xz
drbd: drbd_thread has now a pointer to a tconn instead of to a mdev
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
index e85221f..e8d652f 100644
--- a/drivers/block/drbd/drbd_bitmap.c
+++ b/drivers/block/drbd/drbd_bitmap.c
@@ -119,9 +119,9 @@ 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",
- drbd_task_to_thread_name(mdev, current),
+ drbd_task_to_thread_name(mdev->tconn, current),
func, b->bm_why ?: "?",
- drbd_task_to_thread_name(mdev, b->bm_task));
+ drbd_task_to_thread_name(mdev->tconn, b->bm_task));
}
void drbd_bm_lock(struct drbd_conf *mdev, char *why, enum bm_flag flags)
@@ -138,9 +138,9 @@ 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",
- drbd_task_to_thread_name(mdev, current),
+ drbd_task_to_thread_name(mdev->tconn, current),
why, b->bm_why ?: "?",
- drbd_task_to_thread_name(mdev, b->bm_task));
+ drbd_task_to_thread_name(mdev->tconn, b->bm_task));
mutex_lock(&b->bm_change);
}
if (BM_LOCKED_MASK & b->bm_flags)