aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAnand Jain <[email protected]>2023-03-27 17:53:07 +0800
committerDavid Sterba <[email protected]>2023-04-17 18:01:20 +0200
commitbfd3ea946faa8b653025bf56e4bb5428ee6fde05 (patch)
treef4f20c7556b60a5d58cf3b851dc4fc5213729bd2 /tools/perf/scripts/python
parentb7b1167c36350904899594ddb235f64d59625195 (diff)
btrfs: move last_flush_error to write_dev_flush and wait_dev_flush
We parallelize the flush command across devices using our own code, write_dev_flush() sends the flush command to each device and wait_dev_flush() waits for the flush to complete on all devices. Errors from each device are recorded at device->last_flush_error and reset to BLK_STS_OK in write_dev_flush() and to the error, if any, in wait_dev_flush(). These functions are called from barrier_all_devices(). This patch consolidates the use of device->last_flush_error in write_dev_flush() and wait_dev_flush() to remove it from barrier_all_devices(). Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions