Revision 943eb3bf25f4a7b745dd799e031be276aa104d82 authored by Josef Bacik on 19 November 2019, 18:59:20 UTC, committed by David Sterba on 13 December 2019, 13:09:23 UTC
If we're rename exchanging two subvols we'll try to lock this lock
twice, which is bad.  Just lock once if either of the ino's are subvols.

Fixes: cdd1fedf8261 ("btrfs: add support for RENAME_EXCHANGE and RENAME_WHITEOUT")
CC: stable@vger.kernel.org # 4.4+
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
1 parent db8fe64
History
File Mode Size
Kconfig -rw-r--r-- 2.0 KB
Makefile -rw-r--r-- 225 bytes
smack.h -rw-r--r-- 13.8 KB
smack_access.c -rw-r--r-- 16.6 KB
smack_lsm.c -rw-r--r-- 116.5 KB
smack_netfilter.c -rw-r--r-- 2.2 KB
smackfs.c -rw-r--r-- 68.8 KB

back to top