Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b5555f77 authored by Amit Gud's avatar Amit Gud Committed by Chris Mason
Browse files

Btrfs: fix race in worker_loop



Need to check kthread_should_stop after schedule_timeout() before calling
schedule(). This causes threads to sleep with potentially no one to wake them
up causing mount(2) to hang in btrfs_stop_workers waiting for threads to stop.

Signed-off-by: default avatarAmit Gud <gud@ksu.edu>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent dccae999
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment