Re: [PATCH v2] btrfs: Fix memory barriers usage with device stats counters

2017-10-24 Thread Mathieu Desnoyers
is only a snapshot at > best > there was no point in reading the counter twice - once in > btrfs_dev_stats_dirty > and then again when assigning stats_cnt. Just collapse both reads into 1. > > Fixes: addc3fa74e5b ("Btrfs: Fix the problem that the dirty flag of dev sta

Re: [PATCH 1/3] btrfs: Fix memory barriers usage with device stats counters

2017-10-20 Thread Mathieu Desnoyers
tats_ccnt); > } > @@ -523,6 +529,12 @@ static inline void btrfs_dev_stat_set(struct btrfs_device > *dev, > int index, unsigned long val) > { > atomic_set(dev->dev_stat_values + index, val); > + /* > + * This memory bar

Re: [PATCH] Move BTRFS RCU string to common library

2014-09-18 Thread Mathieu Desnoyers
- Original Message - > From: "Omar Sandoval" > To: "Chris Mason" , "Josef Bacik" , > linux-btrfs@vger.kernel.org, "Paul E. McKenney" > , "Josh Triplett" , > "Steven Rostedt" , > "Mathieu Desnoyers&qu