]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: sysfs: export currently running exclusive operation
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 25 Aug 2020 15:02:33 +0000 (10:02 -0500)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:20 +0000 (12:12 +0200)
commit66a2823c54367b4d366cfa5dc12ef99ef560f428
treee9aed67d044867d2eaa189ae0bced9b627ed65da
parentc3e1f96c37d0f863ac6ddcafac6921fd46f1aa37
btrfs: sysfs: export currently running exclusive operation

/sys/fs/<fsid>/exclusive_operation contains the currently executing
exclusive operation. Add a sysfs_notify() when operation end, so
userspace can be notified of exclusive operation is finished.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
fs/btrfs/sysfs.c