* [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
* Re: [PATCH] MMC: name mmc queue thread by host index
[not found] <AANLkTi=4mAFOZAMqg6oFs0ry9X8vxYh9ZU_Wz-Y+q9W6@mail.gmail.com>
@ 2010-09-30 0:22 ` Ethan Du
0 siblings, 0 replies; 3+ messages in thread
From: Ethan Du @ 2010-09-30 0:22 UTC (permalink / raw)
To: linux-mmc
Anyone interested?
It always takes time to identify a problem with several processes all
named mmcqd there
On Sun, Sep 26, 2010 at 4:34 PM, Ethan Du <ethan.too@gmail.com> wrote:
> 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 <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 [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: name mmc queue thread by host index
2010-09-27 2:22 [PATCH] mmc: name mmc queue thread by host index Ethan Du
@ 2010-09-30 22:40 ` Chris Ball
0 siblings, 0 replies; 3+ messages in thread
From: Chris Ball @ 2010-09-30 22:40 UTC (permalink / raw)
To: Ethan Du; +Cc: linux-mmc
Hi Ethan,
On Mon, Sep 27, 2010 at 10:22:20AM +0800, Ethan Du wrote:
> 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
Thanks, applied to mmc-next. (This patch was line-wrapped; please
fix that next time.)
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 3+ messages in thread
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.