summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-04-05 01:41:06 +0200
committerDavid Sterba <dsterba@suse.com>2018-12-17 14:51:45 +0100
commit53176dde0acd8fa49c6c2e6097283acc6241480f (patch)
treefe42e45af2f699762556d58619b8365091ea445e /fs/btrfs/ctree.h
parent129827e3001fd1e6892a0629b48f9c7c91cbb8b6 (diff)
btrfs: dev-replace: remove custom read/write blocking scheme
After the rw semaphore has been added, the custom blocking using ::blocking_readers and ::read_lock_wq is redundant. The blocking logic in __btrfs_map_block is replaced by extending the time the semaphore is held, that has the same blocking effect on writes as the previous custom scheme that waited until ::blocking_readers was zero. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index b4f97120aecd..5fb4cb646c82 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -379,8 +379,6 @@ struct btrfs_dev_replace {
struct mutex lock_finishing_cancel_unmount;
struct rw_semaphore rwsem;
- atomic_t blocking_readers;
- wait_queue_head_t read_lock_wq;
struct btrfs_scrub_progress scrub_progress;