aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-02-08 09:35:58 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-09-28 04:33:09 -0400
commitf1b3a6ec7d2b3033b18c6ad125f5694c85599c4a (patch)
treed72331d06fec4a57ae90043c48774398eb25e4ed /drivers/block/drbd/drbd_main.c
parenta21e9298275a0145e43c2413725549112d99ba01 (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.c3
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
449restart: 452restart:
450 retval = thi->function(thi); 453 retval = thi->function(thi);
451 454