Re: [PATCH] RFC: mmc: block: replace semaphore with freezing

Arnd Bergmann
2016-11-16T12:19:40Z

On Wednesday, November 16, 2016 11:51:04 AM CET Linus Walleij wrote:
> @@ -95,12 +95,9 @@ static int mmc_queue_thread(void *d)
> set_current_state(TASK_RUNNING);
> break;
> }
> - up(&mq->thread_sem);
> - schedule();
> - down(&mq->thread_sem);
> + try_to_freeze();
>

The schedule() here is where we wait for new requests to come in
from mmc_request_fn(), you can't remove that or you end up spinning
continuously.

Arnd