Re: [PATCH] btrfs: convert data_seqcount to seqcount_mutex_t

2020-10-23 Thread David Sterba
On Wed, Oct 21, 2020 at 01:17:24PM -0700, Davidlohr Bueso wrote: > By doing so we can associate the sequence counter to the chunk_mutex > for lockdep purposes (compiled-out otherwise) and also avoid > explicitly disabling preemption around the write region as it will now > be done automatically by

[PATCH] btrfs: convert data_seqcount to seqcount_mutex_t

2020-10-21 Thread Davidlohr Bueso
By doing so we can associate the sequence counter to the chunk_mutex for lockdep purposes (compiled-out otherwise) and also avoid explicitly disabling preemption around the write region as it will now be done automatically by the seqcount machinery based on the lock type. Signed-off-by: Davidlohr