Skip to content
Commit 8d532b2a authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
parent d85c8a6f
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