diff options
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 3 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 5 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_worker.c | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index e89ec80395d3..0861746a7475 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -446,6 +446,9 @@ static int drbd_thread_setup(void *arg) | |||
446 | unsigned long flags; | 446 | unsigned long flags; |
447 | int retval; | 447 | int retval; |
448 | 448 | ||
449 | snprintf(current->comm, sizeof(current->comm), "drbd_%c_%s", | ||
450 | thi->name[0], thi->mdev->tconn->name); | ||
451 | |||
449 | restart: | 452 | restart: |
450 | retval = thi->function(thi); | 453 | retval = thi->function(thi); |
451 | 454 | ||
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 4aa75bad16cd..ab9b505c0f0b 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -4227,11 +4227,8 @@ static int drbd_do_auth(struct drbd_tconn *tconn) | |||
4227 | int drbdd_init(struct drbd_thread *thi) | 4227 | int drbdd_init(struct drbd_thread *thi) |
4228 | { | 4228 | { |
4229 | struct drbd_conf *mdev = thi->mdev; | 4229 | struct drbd_conf *mdev = thi->mdev; |
4230 | unsigned int minor = mdev_to_minor(mdev); | ||
4231 | int h; | 4230 | int h; |
4232 | 4231 | ||
4233 | sprintf(current->comm, "drbd%d_receiver", minor); | ||
4234 | |||
4235 | dev_info(DEV, "receiver (re)started\n"); | 4232 | dev_info(DEV, "receiver (re)started\n"); |
4236 | 4233 | ||
4237 | do { | 4234 | do { |
@@ -4572,8 +4569,6 @@ int drbd_asender(struct drbd_thread *thi) | |||
4572 | int ping_timeout_active = 0; | 4569 | int ping_timeout_active = 0; |
4573 | int empty; | 4570 | int empty; |
4574 | 4571 | ||
4575 | sprintf(current->comm, "drbd%d_asender", mdev_to_minor(mdev)); | ||
4576 | |||
4577 | current->policy = SCHED_RR; /* Make this a realtime task! */ | 4572 | current->policy = SCHED_RR; /* Make this a realtime task! */ |
4578 | current->rt_priority = 2; /* more important than all other tasks */ | 4573 | current->rt_priority = 2; /* more important than all other tasks */ |
4579 | 4574 | ||
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index cac65f67c144..6f709621ae26 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c | |||
@@ -1631,8 +1631,6 @@ int drbd_worker(struct drbd_thread *thi) | |||
1631 | LIST_HEAD(work_list); | 1631 | LIST_HEAD(work_list); |
1632 | int intr = 0, i; | 1632 | int intr = 0, i; |
1633 | 1633 | ||
1634 | sprintf(current->comm, "drbd%d_worker", mdev_to_minor(mdev)); | ||
1635 | |||
1636 | while (get_t_state(thi) == RUNNING) { | 1634 | while (get_t_state(thi) == RUNNING) { |
1637 | drbd_thread_current_set_cpu(thi); | 1635 | drbd_thread_current_set_cpu(thi); |
1638 | 1636 | ||