From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Ball Subject: Re: [patch 21/30] mmc: Convert "mutex" to semaphore Date: Tue, 14 Sep 2010 13:47:41 +0100 Message-ID: <20100914124741.GA17079@void.printf.net> References: <20100907124636.880953480@linutronix.de> <20100907125056.703221226@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from void.printf.net ([89.145.121.20]:45117 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417Ab0INMr4 (ORCPT ); Tue, 14 Sep 2010 08:47:56 -0400 Content-Disposition: inline In-Reply-To: <20100907125056.703221226@linutronix.de> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Thomas Gleixner Cc: LKML , Andrew Morton , Ingo Molnar , Peter Zijlstra , Christoph Hellwig , linux-mmc@vger.kernel.org Hi, On Tue, Sep 07, 2010 at 02:33:22PM -0000, Thomas Gleixner wrote: > Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. > > Signed-off-by: Thomas Gleixner > Cc: linux-mmc@vger.kernel.org > > --- > drivers/mmc/card/queue.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/drivers/mmc/card/queue.c > =================================================================== > --- linux-2.6.orig/drivers/mmc/card/queue.c > +++ linux-2.6/drivers/mmc/card/queue.c > @@ -209,7 +209,7 @@ int mmc_init_queue(struct mmc_queue *mq, > sg_init_table(mq->sg, host->max_phys_segs); > } > > - init_MUTEX(&mq->thread_sem); > + sema_init(&mq->thread_sem, 1); > > mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd"); > if (IS_ERR(mq->thread)) { > > Thanks, applied to mmc-next. -- Chris Ball One Laptop Per Child