diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-02-08 09:35:58 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-09-28 04:33:09 -0400 |
commit | f1b3a6ec7d2b3033b18c6ad125f5694c85599c4a (patch) | |
tree | d72331d06fec4a57ae90043c48774398eb25e4ed /drivers/block/drbd/drbd_main.c | |
parent | a21e9298275a0145e43c2413725549112d99ba01 (diff) |
drbd: Consolidated the setup of the thread name into the framework
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_main.c')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 3 |
1 files changed, 3 insertions, 0 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 | ||