Re: [PATCH 2/2] btrfs: print-tree: Add locking status output for debug build

2018-04-19 Thread David Sterba
On Wed, Apr 11, 2018 at 05:08:13PM +0800, Qu Wenruo wrote: > It's pretty handy if we can get debug output for locking status of an > extent buffer, specially for race related debugging. > > So add the following output for btrfs_print_tree() and > btrfs_print_leaf(): > - refs > - write_locks (as

[PATCH 2/2] btrfs: print-tree: Add locking status output for debug build

2018-04-11 Thread Qu Wenruo
It's pretty handy if we can get debug output for locking status of an extent buffer, specially for race related debugging. So add the following output for btrfs_print_tree() and btrfs_print_leaf(): - refs - write_locks (as w:%u) - read_locks (as r:%u) - blocking_writers (as bw:%u) -