diff options
author | Xin Yin <[email protected]> | 2022-08-25 10:09:45 +0800 |
---|---|---|
committer | David Howells <[email protected]> | 2022-08-31 16:41:10 +0100 |
commit | 1122f40072731525c06b1371cfa30112b9b54d27 (patch) | |
tree | b16e334d8a58b34ef5fbac792f8420f788c731a3 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | c93ccd63b18c8d108c57b2bb0e5f3b058b9d2029 (diff) |
cachefiles: make on-demand request distribution fairer
For now, enqueuing and dequeuing on-demand requests all start from
idx 0, this makes request distribution unfair. In the weighty
concurrent I/O scenario, the request stored in higher idx will starve.
Searching requests cyclically in cachefiles_ondemand_daemon_read,
makes distribution fairer.
Fixes: c8383054506c ("cachefiles: notify the user daemon when looking up cookie")
Reported-by: Yongqing Li <[email protected]>
Signed-off-by: Xin Yin <[email protected]>
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Jeffle Xu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/ # v1
Link: https://lore.kernel.org/r/[email protected]/ # v2
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions