Skip to content

Commit

Permalink
mmc: name mmc queue thread by host index
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ethan Du authored and Chris Ball committed Oct 23, 2010
1 parent 49e3b5a commit de528fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/mmc/card/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de528fa

Please sign in to comment.