Replace custom device-replace locking with rwsem
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | btrfs: reada: reorder dev-replace locks before radix tree preloadfs/ | +7 | 0 replies | |
| 2/4 | btrfs: dev-replace: swich locking to rw semaphorefs/ fs/ fs/ | +8 | 0 replies | |
| 3/4 | btrfs: dev-replace: remove custom read/write blocking schemefs/ fs/ fs/ +2 more | +6 | 0 replies | |
| 4/4 | btrfs: dev-replace: open code trivial locking helpersfs/ fs/ fs/ +2 more | +52 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Replace custom device-replace locking with rwsem
The first cleanup part went to 4.19, the actual switch from the custom locking to rswem was postponed as I found performance degradation. This turned out to be related to VM cache settings, so I'm resending the series again.
The custom locking is based on rwlock protected reader/writer counters, waitqueues, which essentially is what the readwrite semaphore does.
Previous patchset:
https://lore.kernel.org/linux-btrfs/[email protected]/
Patches correspond to 8/11-11/11 and there's no change besides refreshing on top of current misc-next.
David Sterba (4):
btrfs: reada: reorder dev-replace locks before radix tree preload
btrfs: dev-replace: swich locking to rw semaphore
btrfs: dev-replace: remove custom read/write blocking scheme
btrfs: dev-replace: open code trivial locking helpers
fs/btrfs/ctree.h | 4 +- fs/btrfs/dev-replace.c | 97 ++++++++++++++---------------------------- fs/btrfs/dev-replace.h | 5 --- fs/btrfs/disk-io.c | 4 +- fs/btrfs/reada.c | 16 ++++--- fs/btrfs/scrub.c | 15 ++++--- fs/btrfs/volumes.c | 27 ++++++------ 7 files changed, 63 insertions(+), 105 deletions(-)
Signature · 1 line
2.19.1