mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
osd: tiering: avoid duplicate promotion on proxy read
Do not promote if it is already undergoing in maybe_handle_cache. Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
This commit is contained in:
parent
43f13af614
commit
650f1d989b
@ -1802,6 +1802,11 @@ bool ReplicatedPG::maybe_handle_cache(OpRequestRef op,
|
||||
// Always proxy
|
||||
do_proxy_read(op);
|
||||
|
||||
// Avoid duplicate promotion
|
||||
if (obc.get() && obc->is_blocked()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Promote too?
|
||||
switch (pool.info.min_read_recency_for_promote) {
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user