]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add cancellation to resize
authorDavid Sterba <dsterba@suse.com>
Tue, 18 May 2021 19:12:33 +0000 (21:12 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:07 +0000 (15:19 +0200)
commit73938e26ae975da98373421cc6b648b925c900bd
treecfdf5a402b913ec6907a6089b6adfd871ed632c5
parentb833041614441f7f6e5861c9ece33addb6728929
btrfs: add cancellation to resize

Accept literal string "cancel" as resize operation and interpret that
as a request to cancel the running operation. If it's running, wait
until it finishes current work and return ECANCELED.

Shrinking resize uses relocation to move the chunks away, use the
conditional exclusive operation start and cancellation helpers.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c