Re: [PATCH 1/2] btrfs: scrub: maintain the unlock order in scrub thread

2018-11-27 Thread Anand Jain
On 11/26/2018 05:47 PM, Nikolay Borisov wrote: On 26.11.18 г. 11:07 ч., Anand Jain wrote: The fs_info::device_list_mutex and fs_info::scrub_lock creates a nested locks in btrfs_scrub_dev(). During the lock acquire the hierarchy is fs_info::device_list_mutex and then fs_info::scrub_lock, so

Re: [PATCH 1/2] btrfs: scrub: maintain the unlock order in scrub thread

2018-11-26 Thread Nikolay Borisov
On 26.11.18 г. 11:07 ч., Anand Jain wrote: > The fs_info::device_list_mutex and fs_info::scrub_lock creates a > nested locks in btrfs_scrub_dev(). During the lock acquire the > hierarchy is fs_info::device_list_mutex and then fs_info::scrub_lock, > so following the same reverse order during

[PATCH 1/2] btrfs: scrub: maintain the unlock order in scrub thread

2018-11-26 Thread Anand Jain
The fs_info::device_list_mutex and fs_info::scrub_lock creates a nested locks in btrfs_scrub_dev(). During the lock acquire the hierarchy is fs_info::device_list_mutex and then fs_info::scrub_lock, so following the same reverse order during unlock, that is fs_info::scrub_lock and then