Skip to content
Commit 3e99d8eb authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: fix async worker startup race



After a new worker thread starts, it is placed into the
list of idle threads.  But, this may race with a
check for idle done by the worker thread itself, resulting
in a double list_add operation.

This fix adds a check to make sure the idle thread addition
is done properly.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 83ebade3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment