]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: name mmc queue thread by host index
authorEthan Du <ethan.too@gmail.com>
Thu, 30 Sep 2010 22:40:27 +0000 (18:40 -0400)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:16 +0000 (21:11 +0800)
Usually there are multiple mmc host controllers; rename mmc queue thread
by host index so we can easily identify which controller it belongs to.

Signed-off-by: Ethan Du <ethan.too@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/queue.c

index 91c99e76c8cc903f1b363aefb68e050907bb516d..4e42d030e09724324e9eb6ec475103dff83a86af 100644 (file)
@@ -210,7 +210,9 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
 
        sema_init(&mq->thread_sem, 1);
 
-       mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd");
+       mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd/%d",
+               host->index);
+
        if (IS_ERR(mq->thread)) {
                ret = PTR_ERR(mq->thread);
                goto free_bounce_sg;