All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: name mmc queue thread by host index
@ 2010-09-27  2:22 Ethan Du
  2010-09-30 22:40 ` Chris Ball
  0 siblings, 1 reply; 3+ messages in thread
From: Ethan Du @ 2010-09-27  2:22 UTC (permalink / raw)
  To: linux-mmc

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>
---
 drivers/mmc/card/queue.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
index e876678..673bbdb 100644
--- a/drivers/mmc/card/queue.c
+++ b/drivers/mmc/card/queue.c
@@ -211,7 +211,8 @@ int mmc_init_queue(struct mmc_queue *mq, struct
mmc_card *card, spinlock_t *lock

 	init_MUTEX(&mq->thread_sem);

-	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;
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread
[parent not found: <AANLkTi=4mAFOZAMqg6oFs0ry9X8vxYh9ZU_Wz-Y+q9W6@mail.gmail.com>]

end of thread, other threads:[~2010-09-30 22:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27  2:22 [PATCH] mmc: name mmc queue thread by host index Ethan Du
2010-09-30 22:40 ` Chris Ball
     [not found] <AANLkTi=4mAFOZAMqg6oFs0ry9X8vxYh9ZU_Wz-Y+q9W6@mail.gmail.com>
2010-09-30  0:22 ` [PATCH] MMC: " Ethan Du

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.