]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: keep pgs locked during handle_osd_map dance
authorSage Weil <sage.weil@dreamhost.com>
Sun, 29 Apr 2012 15:17:06 +0000 (08:17 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sun, 29 Apr 2012 16:03:24 +0000 (09:03 -0700)
commitd64e1b974023e06b8d96d2c620510697f0f4957f
treea78008ee1bf7e8fae42383d9be2644167a72656f
parent4ae857cb121fc89f1fc6c58d8a55b94e3b8b93dc
osd: keep pgs locked during handle_osd_map dance

Currently we drop and retake locks during handle_osd_map calls to
advance_map and activate_map.  Instead, take them all once, and hold them.
This avoids leaving dirty in-core state in the PG without the lock held.

This will clearly go away as soon as the map threading stuff is redone.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h