summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2022-03-11 11:35:27 +0100
committerJens Axboe <axboe@kernel.dk>2022-03-11 13:15:33 +0100
commit85d9abcd7331566781b93ff46e4bccd4806ef2b2 (patch)
tree2c581e63393a0e7c1a15f396d77c10d1af889736 /drivers/block/loop.c
parentMerge branch 'md-next' of https://git.kernel.org/pub/scm/linux/kernel/git/son... (diff)
downloadlinux-85d9abcd7331566781b93ff46e4bccd4806ef2b2.tar.xz
linux-85d9abcd7331566781b93ff46e4bccd4806ef2b2.zip
xen/blkfront: speed up purge_persistent_grants()
purge_persistent_grants() is scanning the grants list for persistent grants being no longer in use by the backend. When having found such a grant, it will be set to "invalid" and pushed to the tail of the list. Instead of pushing it directly to the end of the list, add it first to a temporary list, avoiding to scan those entries again in the main list traversal. After having finished the scan, append the temporary list to the grant list. Suggested-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Link: https://lore.kernel.org/r/20220311103527.12931-1-jgross@suse.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/loop.c')
0 files changed, 0 insertions, 0 deletions