Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345793
b: refs/heads/master
c: f1b3a6e
h: refs/heads/master
i:
  345791: ba74723
v: v3
  • Loading branch information
Philipp Reisner committed Sep 28, 2011
1 parent 55d7c17 commit 42553ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a21e9298275a0145e43c2413725549112d99ba01
refs/heads/master: f1b3a6ec7d2b3033b18c6ad125f5694c85599c4a
3 changes: 3 additions & 0 deletions trunk/drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ static int drbd_thread_setup(void *arg)
unsigned long flags;
int retval;

snprintf(current->comm, sizeof(current->comm), "drbd_%c_%s",
thi->name[0], thi->mdev->tconn->name);

restart:
retval = thi->function(thi);

Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4227,11 +4227,8 @@ static int drbd_do_auth(struct drbd_tconn *tconn)
int drbdd_init(struct drbd_thread *thi)
{
struct drbd_conf *mdev = thi->mdev;
unsigned int minor = mdev_to_minor(mdev);
int h;

sprintf(current->comm, "drbd%d_receiver", minor);

dev_info(DEV, "receiver (re)started\n");

do {
Expand Down Expand Up @@ -4572,8 +4569,6 @@ int drbd_asender(struct drbd_thread *thi)
int ping_timeout_active = 0;
int empty;

sprintf(current->comm, "drbd%d_asender", mdev_to_minor(mdev));

current->policy = SCHED_RR; /* Make this a realtime task! */
current->rt_priority = 2; /* more important than all other tasks */

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/block/drbd/drbd_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1631,8 +1631,6 @@ int drbd_worker(struct drbd_thread *thi)
LIST_HEAD(work_list);
int intr = 0, i;

sprintf(current->comm, "drbd%d_worker", mdev_to_minor(mdev));

while (get_t_state(thi) == RUNNING) {
drbd_thread_current_set_cpu(thi);

Expand Down

0 comments on commit 42553ad

Please sign in to comment.