summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2021-05-14 21:32:44 +0200
committerDavid Sterba <dsterba@suse.com>2021-06-21 15:19:07 +0200
commit17aaa434ed39cbad48824ef4bb9ec3707091ae5b (patch)
tree4bbb2a49d93e70f5fd0f8363ad8ab3d904bd27ce /tools/perf/scripts/python/syscall-counts.py
parent578bda9e17fdb6b6eaab1980f87dd1819b123da0 (diff)
btrfs: add wrapper for conditional start of exclusive operation
To support optional cancellation of some operations, add helper that will wrap all the combinations. In normal mode it's same as btrfs_exclop_start, in cancellation mode it checks if it's already running and request cancellation and waits until completion. The error codes can be returned to to user space and semantics is not changed, adding ECANCELED. This should be evaluated as an error and that the operation has not completed and the operation should be restarted or the filesystem status reviewed. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions