diff options
author | David Sterba <dsterba@suse.com> | 2018-08-24 17:32:29 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:37 +0200 |
commit | 3280f874576d31b03fe19cbcc23585d96feb4ceb (patch) | |
tree | f94ff5ae016c6ca99f75c5ae2de455c065d75730 /fs/btrfs/dev-replace.h | |
parent | f556faa46eb4e96d0d0772e74ecf66781e132f72 (diff) |
btrfs: remove btrfs_dev_replace::read_locks
This member seems to be copied from the extent_buffer locking scheme and
is at least used to assert that the read lock/unlock is properly nested.
In some way. While the _inc/_dec are called inside the read lock
section, the asserts are both inside and outside, so the ordering is not
guaranteed and we can see read/inc/dec ordered in any way
(theoretically).
A missing call of btrfs_dev_replace_clear_lock_blocking could cause
unexpected read_locks count, so this at least looks like a valid
assertion, but this will become unnecessary with later updates.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.h')
0 files changed, 0 insertions, 0 deletions