diff options
| author | Juergen Gross <[email protected]> | 2022-03-11 10:35:27 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-03-11 12:15:33 +0000 |
| commit | 85d9abcd7331566781b93ff46e4bccd4806ef2b2 (patch) | |
| tree | 2c581e63393a0e7c1a15f396d77c10d1af889736 /net/unix/af_unix.c | |
| parent | Merge branch 'md-next' of https://git.kernel.org/pub/scm/linux/kernel/git/son... (diff) | |
| download | kernel-85d9abcd7331566781b93ff46e4bccd4806ef2b2.tar.gz kernel-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 <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Roger Pau Monné <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
