Skip to contentSkip to conversation

Question about OSDService

DISCUSSION xxhdx1985126 2 participants 2 messages Dec 9, 2016

lore
Share & tools
lore
#0 lore raw

Hi, everyone.

I'm a little confused about OSDService. As far as I know, class OSD can accomplish all the task that a OSD need to do, what is OSDService used for? Especially, what is the meaning of methods like OSDService::get_nextmap_reserved, OSDService::release_map, OSDService::await_reserved_maps?

Thanks:-)

#1 lore raw

It's an admittedly clumsy way of separating self-contained bits of state that do not require the osd_lock and can be safety accessed without the osd_lock from the pg worker threads from the state that does require the osd_lock. Think of it as a set of services provided by class OSD to PG implementations.
-Sam

Quoted 8 lines · On Fri, Dec 9, 2016 at 1:43 AM, xxhdx1985126 <[email protected]> wrote:

Hi, everyone.

I'm a little confused about OSDService. As far as I know, class OSD can accomplish all the task that a OSD need to do, what is OSDService used for? Especially, what is the meaning of methods like OSDService::get_nextmap_reserved, OSDService::release_map, OSDService::await_reserved_maps?

Thanks:-)