Support resize and device delete cancel ops
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | btrfs: protect exclusive_operation by super_lockfs/ fs/ | +17 | 1 reply | |
| 2/6 | btrfs: add cancelable chunk relocation supportfs/ fs/ fs/ | +69 | 7 replies | |
| 3/6 | btrfs: introduce try-lock semantics for exclusive op startfs/ fs/ | +29 | 5 replies | |
| 4/6 | btrfs: add wrapper for conditional start of exclusive operationfs/ | +42 | 3 replies | |
| 5/6 | btrfs: add cancelation to resizefs/ | +26 | 1 reply | |
| 6/6 | btrfs: add device delete cancelfs/ | +24 | 1 reply |
Reviews trailers per patch
5 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Josef Bacik | Anand Jain | Filipe Manana |
|---|---|---|---|
| 1/6 | R-b | ||
| 2/6 | R-b | ||
| 3/6 | R-b | R-b | |
| 4/6 | |||
| 5/6 | R-b | ||
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/6] Support resize and device delete cancel ops
We don't have a nice interface to cancel the resize or device deletion from a command. Since recently, both commands can be interrupted by a signal, which also means Ctrl-C from terminal, but given the long history of absence of the commands I think this is not yet well known.
Examples:
$ btrfs fi resize -10G /mnt ... $ btrfs fi resize cancel /mnt
$ btrfs device delete /dev/sdx /mnt ... $ btrfs device delete cancel /mnt
The cancel request returns once the resize/delete command finishes processing of the currently relocated chunk. The btrfs-progs needs to be updated as well to skip checks of the sysfs exclusive_operation file added in 5.10 (raw ioctl would work).
David Sterba (6):
btrfs: protect exclusive_operation by super_lock
btrfs: add cancelable chunk relocation support
btrfs: introduce try-lock semantics for exclusive op start
btrfs: add wrapper for conditional start of exclusive operation
btrfs: add cancelation to resize
btrfs: add device delete cancel
fs/btrfs/ctree.h | 16 +++- fs/btrfs/disk-io.c | 1 + fs/btrfs/ioctl.c | 174 ++++++++++++++++++++++++++++++++---------- fs/btrfs/relocation.c | 60 ++++++++++++++- 4 files changed, 207 insertions(+), 44 deletions(-)
Signature · 1 line
2.29.2