Repository navigation
Commit 3280f87
committed
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>1 parent f556faa commit 3280f87
3 files changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
967 | | - | |
968 | 967 | | |
969 | 968 | | |
970 | 969 | | |
971 | 970 | | |
972 | | - | |
973 | | - | |
974 | 971 | | |
975 | 972 | | |
976 | 973 | | |
| |||
997 | 994 | | |
998 | 995 | | |
999 | 996 | | |
1000 | | - | |
1001 | 997 | | |
1002 | 998 | | |
1003 | 999 | | |
| |||
1007 | 1003 | | |
1008 | 1004 | | |
1009 | 1005 | | |
1010 | | - | |
1011 | 1006 | | |
1012 | 1007 | | |
1013 | 1008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2155 | 2155 | | |
2156 | 2156 | | |
2157 | 2157 | | |
2158 | | - | |
2159 | 2158 | | |
2160 | 2159 | | |
2161 | 2160 | | |
| |||
0 commit comments