]> 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)
commitd0537dbf45d8d3b00cdeb4fe4cc9c5af82d6cb0a
treecfdf5a402b913ec6907a6089b6adfd871ed632c5
parentb8c964bec1acabbef94d1844c9d9f3588e104017
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