Skip to content
Commit 53176dde authored by David Sterba's avatar David Sterba
Browse files

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: default avatarDavid Sterba <dsterba@suse.com>
parent 129827e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment