btrfs: reada: reorder dev-replace locks before radix tree preload
authorDavid Sterba <dsterba@suse.com>
Fri, 24 Aug 2018 17:35:04 +0000 (19:35 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:44 +0000 (14:51 +0100)
commitceb21a8db48559fd0809e03c4df9eb37743d9170
tree14d77fe9153ffebadcc3845a80de4fbb1e94c95d
parentd1051d6ebf8ef3517a5a3cf82bba8436d190f1c2
btrfs: reada: reorder dev-replace locks before radix tree preload

The device-replace read lock is going to use rw semaphore in followup
commits. The semaphore might sleep which is not possible in the radix
tree preload section. The lock nesting is now:

* device replace
  * radix tree preload
    * readahead spinlock

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/reada.c