commit | 8d532b2afb2eacc84588db709ec280a3d1219be3 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Fri Dec 23 07:53:00 2011 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Fri Dec 23 07:53:00 2011 -0500 |
tree | 27a4353e75d67bc41e9d2172702dbed1109095eb | |
parent | d85c8a6f1bc083279215ff6e79b7c292bf3ec905 [diff] |
Btrfs: fix worker lock misuse in find_worker Dan Carpenter noticed that we were doing a double unlock on the worker lock, and sometimes picking a worker thread without the lock held. This fixes both errors. Signed-off-by: Chris Mason <chris.mason@oracle.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>