]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: convert data_seqcount to seqcount_mutex_t
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 21 Oct 2020 20:17:24 +0000 (13:17 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 27 Oct 2020 14:11:51 +0000 (15:11 +0100)
commit8cf115b9abe1fea1c5d95b1ce49eba04187c7b42
tree1d309412441c1c86e3b2cfb0a6ce65c88b406135
parent3a1631c602572dfe4ed81674136905fdc17da1ad
btrfs: convert data_seqcount to seqcount_mutex_t

By doing so we can associate the sequence counter to the chunk_mutex
for lockdep purposes (compiled-out otherwise), the mutex is otherwise
used on the write side.
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 Bueso <dbueso@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h