Skip to content
Commit c62b17a5 authored by Romit Dasgupta's avatar Romit Dasgupta Committed by Jens Axboe
Browse files

Thaw refrigerated bdi flusher threads before invoking kthread_stop on them



Unfreezes the bdi flusher task when the said task needs to exit.

Steps to reproduce this.
1) Mount a file system from MMC/SD card.
2) Unmount the file system. This creates a flusher task.
3) Attempt suspend to RAM. System is unresponsive.

This is because the bdi flusher thread is already in the refrigerator and will
remain so until it is thawed. The MMC driver suspend routine call stack will
ultimately issue a 'kthread_stop' on the bdi flusher thread and will block
until the flusher thread is exited. Since the bdi flusher thread is in the
refrigerator it never cleans up until thawed.

Signed-off-by: default avatarRomit Dasgupta <romit@ti.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent aa021baa
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