summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_debugfs.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-03-10 12:00:35 +0300
committerDavid Sterba <dsterba@suse.com>2020-03-23 19:01:55 +0300
commitdb161806dc5615a42893a1df7d803d12890699d9 (patch)
treefc1e73dc39b5788350afaec5e31a3dc3a185ccc5 /drivers/scsi/scsi_debugfs.c
parentf8e6608180a31cc72a23b74969da428da236dbd1 (diff)
downloadlinux-db161806dc5615a42893a1df7d803d12890699d9.tar.xz
btrfs: account ticket size at add/delete time
Instead of iterating all pending tickets on the normal/priority list to sum their total size the cost can be amortized across ticket addition/ removal. This turns O(n) + O(m) (where n is the size of the normal list and m of the priority list) into O(1). This will mostly have effect in workloads that experience heavy flushing. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'drivers/scsi/scsi_debugfs.c')
0 files changed, 0 insertions, 0 deletions