Commit 2df1b4c9 authored by Thomas Gleixner's avatar Thomas Gleixner

mmc: Convert "mutex" to semaphore

The usage of this "mutex" is non obvious and probably a completions in
some places. Make it a semaphore.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Pierre Ossman <drzeus@drzeus.cx>
parent 183ed327
...@@ -194,7 +194,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock ...@@ -194,7 +194,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
sg_init_table(mq->sg, host->max_phys_segs); sg_init_table(mq->sg, host->max_phys_segs);
} }
init_MUTEX(&mq->thread_sem); semaphore_init(&mq->thread_sem);
mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd"); mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd");
if (IS_ERR(mq->thread)) { if (IS_ERR(mq->thread)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment