diff options
author | Ethan Du <ethan.too@gmail.com> | 2010-09-30 18:40:27 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 21:11:16 +0800 |
commit | de528fa3f94da95f7667eb1583178268c3a403d0 (patch) | |
tree | e2361abb0cdf6a628a94c412e3e1f8be882b3036 /drivers/mmc/card/queue.c | |
parent | 49e3b5a44f8abd33c8693edc575c6d06a210d778 (diff) | |
download | blackbird-op-linux-de528fa3f94da95f7667eb1583178268c3a403d0.tar.gz blackbird-op-linux-de528fa3f94da95f7667eb1583178268c3a403d0.zip |
mmc: name mmc queue thread by host index
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>
Diffstat (limited to 'drivers/mmc/card/queue.c')
-rw-r--r-- | drivers/mmc/card/queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 91c99e76c8cc..4e42d030e097 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -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; |