Chris Mason 8d532b2afb 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>
2011-12-23 07:53:00 -05:00
..
2011-07-26 16:49:47 -07:00
2010-12-22 23:15:47 +08:00
2011-10-20 18:10:50 +02:00
2011-06-17 14:54:18 -04:00
2011-05-28 07:00:39 -04:00
2011-12-15 15:38:41 -05:00
2011-11-20 07:21:14 -05:00