diff options
author | 2016-11-30 16:20:25 -0800 | |
---|---|---|
committer | 2017-01-03 15:19:28 +0100 | |
commit | 781feef7e6befafd4d9787d1f7ada1f9ccd504e4 (patch) | |
tree | e8f0da62b7c2971b2f73649cf665301aef2272b9 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Btrfs: use down_read_nested to make lockdep silent (diff) | |
download | wireguard-linux-781feef7e6befafd4d9787d1f7ada1f9ccd504e4.tar.xz wireguard-linux-781feef7e6befafd4d9787d1f7ada1f9ccd504e4.zip |
Btrfs: fix lockdep warning about log_mutex
While checking INODE_REF/INODE_EXTREF for a corner case, we may acquire a
different inode's log_mutex with holding the current inode's log_mutex, and
lockdep has complained this with a possilble deadlock warning.
Fix this by using mutex_lock_nested() when processing the other inode's
log_mutex.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions