On Wed, Apr 11, 2018 at 11:21:18AM +0300, Nikolay Borisov wrote: > Locks should generally be released in the oppposite order they are > acquired. Generally lock acquisiton ordering is used to ensure > deadlocks don't happen. However, as becomes more complicated it's > best to also maintain proper unlock order so as to avoid possible dead > locks. This was found by code inspection and doesn't necessarily lead > to a deadlock scenario. > > Signed-off-by: Nikolay Borisov <nbori...@suse.com> Reviewed-by: David Sterba <dste...@suse.com> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
- [PATCH 0/4] Misc cleanups Nikolay Borisov
- Re: [PATCH 1/4] btrfs: Use while loop instead of labe... David Sterba
- Re: [PATCH 2/4] btrfs: Fix lock release order David Sterba
- Re: [PATCH 3/4] btrfs: Consolidate error checking for... David Sterba
- Re: [PATCH 4/4] btrfs: Rewrite retry logic in do_chun... David Sterba
- Re: [PATCH 4/4] btrfs: Rewrite retry logic in do_... Nikolay Borisov
- [PATCH v2] btrfs: Rewrite retry logic in do_chunk... Nikolay Borisov
- Re: [PATCH v2] btrfs: Rewrite retry logic in ... Nikolay Borisov
- Re: [PATCH v2] btrfs: Rewrite retry logic in ... Nikolay Borisov
- [PATCH 0/4] Misc cleanups Nikolay Borisov
- [PATCH 1/4] btrfs: Refactor loop in btrfs_release... Nikolay Borisov
- Re: [PATCH 1/4] btrfs: Refactor loop in btrfs... David Sterba
- Re: [PATCH 1/4] btrfs: Refactor loop in b... Nikolay Borisov