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:
Zhiqiang Wang 2014-11-28 16:30:20 +08:00 committed by Sage Weil
parent 43f13af614
commit 650f1d989b

View File

@ -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: