]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: trace: Introduce trace events for all btrfs tree locking events
authorQu Wenruo <wqu@suse.com>
Mon, 15 Apr 2019 13:15:25 +0000 (21:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:43 +0000 (19:02 +0200)
commit10247de91f6c8654c37f00a2c715226a32a9d333
tree7d75128d2cf0a8c6cc67f5e747feba42134cf4f3
parent0fc2fe5683798fdc09681e411bfe00acf7464b6d
btrfs: trace: Introduce trace events for all btrfs tree locking events

Unlike btrfs_tree_lock() and btrfs_tree_read_lock(), the remaining
functions in locking.c will not sleep, thus doesn't make much sense to
record their execution time.

Those events are introduced mainly for user space tool to audit and
detect lock leakage or dead lock.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/locking.c
include/trace/events/btrfs.h