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

2018-04-24 Thread Qu Wenruo
On 2018年04月24日 22:44, David Sterba wrote: > On Tue, Apr 24, 2018 at 01:03: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 >> b

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

2018-04-24 Thread David Sterba
On Tue, Apr 24, 2018 at 01:03: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 w:

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

2018-04-23 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:%d) - read_locks (as r:%d) - blocking_writers (as bw:%d) - blocking_reade