Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd: make get_pg_or_queue_for_pg() method safer
On succeeding in getting a PG, put a reference on it before we drop the pg_map_lock and give it back to caller. This is necessary because we may race with _remove_pg(), who will remove the last reference and destruct PG in most case. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
- Loading branch information