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 w:%u) > - read_locks (as r:%u) > - blocking_writers (as bw:%u) > - blocking_readers (as br:%u) > - spinning_writers (as sw:%u) > - spinning_readers (as sr:%u) > - lock_owner > - current->pid Useful, but atomic is 'int' (%d), and pid_t is also int in disguise (maybe there's a special printk specifier for that). -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
