Re: [PATCH] mmc: name mmc queue thread by host index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> ---
>  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@xxxxxxxxxx>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux