commit | 3e99d8eb347c93a5d38081380b8c9e69b203212e | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Tue Sep 15 19:57:42 2009 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Tue Sep 15 20:20:16 2009 -0400 |
tree | 1fde8df76b399c12827c2e2bd989e29e83d9994f | |
parent | 83ebade34bc1a90d0c3f77b87b940f336d075fda [diff] |
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: Chris Mason <chris.mason@oracle.com>